Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Memory Allocation
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; }
56 bytes
128 bytes
24 bytes
12 bytes
Correct Answer:
24 bytes
← Previous Question
More Questions from
Memory Allocation
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments