(no title)
weissi | 9 years ago
int m[2][3] = { {1, 2, 3}, {4, 5,6}};
int *n[2];
n[0] = &m[0][0]; //equivalent to n[0] = m[0]
n[1] = &m[1][0]; //equivalent to n[1] = m[1]
it lists that What is n[1][1]? //2
What is m[1][1]? //same as n[1][1]
but it's actually 5. (n[0][1] would be 2)
No comments yet.