

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct Employee { char *ch; struct Employee *point; }; void main() { struct Employee e1; struct Employee e2; e2.point = e1; (e2.point)->ch = "Prayag"; printf("%s", e1.ch); } |
A. | Compilation Error |
B. | Garbage value |
C. | Prayag |
D. | Undefined behaviour |
E. | None of these |
Answer» B. Garbage value | |