i defined the array inside an if function. please guide me as to how am i wrong. THANK U.
Code:else if (op[6] == 'q') { printf("you have selected Matrix function \n"); printf("please key in the dimension of the matrix"); scanf("%i %i",&b,&t); int m[b][t]; for(x=0;x<b;x++) { for(y=0;y<t;y++) { printf("please enter the values of matrix"); scanf("%i",&c); fflush(stdin); m[b][t]=c; printf("The matrix entered",m); } } }