MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> typedef struct p *q; int main() { struct p { int num1; char num2; q ptr; }; struct p p = {50, 55, &p}; printf("%d n", p.ptr->x); return 0; } |
| A. | 50 |
| B. | 55 |
| C. | Compilation Error |
| D. | Garbage value |
| E. | None of these |
| Answer» D. Garbage value | |