I want to make a function in C that reads an integer N from the user and then creates a dynamic array with N integer positions.
I had problems with my parameters when I tried. Specifically the array parameters.
This is how I create the dynamic array without creating the function.
array = (int*)malloc(N*sizeof(int));
for (i = 0; i<N; i++)
Thanks in advance.
Edited by shadowstep00, 08 December 2013 - 06:18 AM.