

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct Result { int n1; char n2; struct Result *p; }; int main() { struct Result Result = {100, 200, &Result}; printf("%d n", Result.p->n1); return 0; } |
A. | 200 |
B. | Compilation Error |
C. | 100 |
D. | Undefined behaviour |
E. | None of these |
Answer» D. Undefined behaviour | |