Declaring the 'row' for my matrix - problems
Hi,
I must be doing something wrong; I am trying to get the user to input the 'row' index value for my 2D matirx array.
Code:
printf("Enter the row value for the output: ");
scanf("%d", &matrix[outputrow][1]);
Could some please show me how to get this to work. The 'outputrow' is an int variable, and I want to get the user to specify it. But it doesn't do I expeted it to do. The column is predefined at 1, as I only want the user to specify the row value.
Does anyone have any ideas?
Thanks