1.

What will be the output of the following C code?#include <stdio.h> typedef struct Employee { char *ch; }Employ; void main() { struct Employ emp; emp.ch = "hello"; printf("%s", emp.ch); }

A. Compilation Error
B. Garbage value
C. hello
D. Undefined behaviour
E. None of these
Answer» B. Garbage value


Discussion

No Comment Found