似乎一切都是正确的,但是当我打印时,它会将所有元素打印为零...请帮助我
#include <stdio.h>
#include <stdlib.h>
#define COL 4
#define ROW 3
int y[3][4] = {{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
int main()
{
int i,j;
for(i=0;i<=ROW;i++)
{
for(j=0;j<=COL;j++)
{
printf("Value at col %d and row %d, is : %d\n",COL,ROW,y[ROW][COL]);
}
}
}
请帮我!