J
junky_fellow
Consider a 3-dimensional array:
char a[2][3][4] = { "abcd", "efgh", "ijkl" ,
"mnop", "qrst", "uvwx"
} ;
when i print the addresses for a,a[0] and a[0][0] they are same.
but when i access element a+1, a[0]+1 and a[0][0]+1 they are different.
why is it so?
How does the compiler interpret this?
Is this compiler dependent?
thanx in advance.....
char a[2][3][4] = { "abcd", "efgh", "ijkl" ,
"mnop", "qrst", "uvwx"
} ;
when i print the addresses for a,a[0] and a[0][0] they are same.
but when i access element a+1, a[0]+1 and a[0][0]+1 they are different.
why is it so?
How does the compiler interpret this?
Is this compiler dependent?
thanx in advance.....