MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this C code? #include struct { int k; char c; }; int main() { struct p; p.k = 10; printf("%d\n", p.k); } |
| A. | Compile time error |
| B. | 10 |
| C. | Undefined behaviour |
| D. | Segmentation fault |
| Answer» B. 10 | |