MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code on a 32-bit machine? #include int main() { int x = 10000; double y = 56; int *p = &x; double *q = &y; printf("p and q are %d and %d", sizeof(p), sizeof(q)); return 0; } |
| A. | p and q are 4 and 4 |
| B. | p and q are 4 and 8 |
| C. | compiler error |
| D. | p and q are 2 and 8 |
| Answer» B. p and q are 4 and 8 | |