I've been given this code:
void f1(int** p1);
void f2(int p2[][]);
void f3(int p3[3][5]);
we can assume that sizeof(int) = 4, sizeof(void*) = 8
and I needed to choose all the correct answers from these answers:
sizeof(p3) == 3*8, sizeof(*p3) == 5*4, sizeof(**p3) == 4
sizeof(p2) == 8, sizeof(*p2) == 8, sizeof(**p2) == 4
sizeof(p1) == 8, sizeof(*p1) == 8, sizeof(**p1) == 4
sizeof(p1) == 8, sizeof(*p1) == 8, sizeof(**p1) == 8
sizeof(p3) == 8, sizeof(*p3) == 8, sizeof(**p3) == 4
sizeof(p3) == 8, sizeof(*p3) == 5*4, sizeof(**p3) == 4
sizeof(p2) == 8, sizeof(*p2) == 8, sizeof(**p2) == 8
so I chose answers no. 2, 3, 6 and I was correct on 3 and 6, but 2 was wrong. Would be glad for explanation why 2 is wrong, and only 3 and 6 are correct.