C, printf
Hi,
I'm new in C, so I try do to something easy but I have a problem... I've created the matrix P : P[0][0] = 2; P[0][1] = 0; P[0][2] = 0; P[1][0] = 0; P[1][1] = 2; P[1][2] = 0; P[2][0] = 0; P[2][1] = 0; P[2][2] = 2; And then, for(i=0;i<3;i++) for (j = 0; j < 3; j++) printf("P[%d][%d],%d ",i,j,P[i][j]); printf("\n"); doesn't returm the correct values.. If someone could help me, Thank you! |
All times are GMT -4. The time now is 15:01. |