c allocate array

C
int *array = malloc(10 * sizeof(int));
Source

Also in C: