Hello,
Can someone tell me why do I get 16 instead of the full size of row * col * int?
(If I did int *iptr[4][7]; however, I would get (4*7*4) = 112 and not 16)
Thanks in advance for your helpCode:int *iptr[4]; // array of 4 elements for(i=0; i<4; i++) { iptr[i] = malloc(sizeof(int) * 7); // expand each array to by 7 wide } printf("size of iptr = %d\n", sizeof(iptr));