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