I need to let the user enter an integer N which will become the size of the array. I tired the following:
int N;
printf("Please enter size of array\n");
scanf("%d", &N);
int a[N] = {0};
However i get the following error when I do this:
error: variable-sized object may not be initialized
Anyone know how can do this? Any help would be greatly appreciated!