the code is
result http://img402.imageshack.us/img402/4271/40674082yj2.jpgCode:#include <stdio.h> void main() { int i, j; char a[3][4] = {"you", "my", "luv"}; for(i = 0; i <= 2; i = i + 1) { for(j = 0; j <= 3; j = j + 1) printf("a[%d][%d] = %c\t", i, j, a[j][i]); printf("\n"); } }
My question is how can i print this using cout rather than printf but i don't want it to print a[0][0], a[0][0] etc
when i run the code i just want to see this
thanksyml
uyo
u v