

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