

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct City { char *ch; }; void main() { struct City c1; struct City *c2 = &c1; c2->ch = "Patna"; printf("%s", c1.ch); } |
A. | Compilation Error |
B. | Garbage value |
C. | Segmentation fault |
D. | Patna |
E. | None of these |
Answer» E. None of these | |