hello guys, i've got some problems in 2d array:
1)here i've declared i=5 and j=4, therefore it must take only 9 inputs from me but it's taking 10 inputs
2)can't figure out why it is not printing the numbers entered in the array
Code:
#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
int array[5][4];
clrscr();
printf(" Enter i and j : ");
for(i=0;i<5;i++)
{
for(j=0;j<4;j++);
{
scanf("%d%d",&array[i][j]);
}
}
printf(" Output = %d%d",array[i][j]);
getch();
return 0;
}
can't figure out what's wrong
thanks in adv.
have a nice day