

MCQOPTIONS
Saved Bookmarks
1. |
Assume integer is 2 bytes wide. How many bytes will be allocated for the following code? #include #include #define MAXROW 3 #define MAXCOL 4 int main() { int (*p)[MAXCOL]; p = (int (*) [MAXCOL])malloc(MAXROW *sizeof(*p)); return 0; } |
A. | 56 bytes |
B. | 128 bytes |
C. | 24 bytes |
D. | 12 bytes |
Answer» D. 12 bytes | |