Quote (holychikenz @ 9 Oct 2015 19:07)
Im trying to create an array based on the user input of needed columns and then prompt the user to input values to fill up the array. every time i try to do
printf("please enter the number of columns: ")
scanf("%f", &n)
a[4][n] = 1
the compiler gives me an error saying that "n" is not an integer.
*not full code just the section im having trouble with
array index can only be an integer
int *n;
%d