-
What will be the output of the following C code?
#include <stdio.h>
struct Company
{
char *ch;
};
void main()
{
struct Company c1;
struct Company *c2 = &c1;
c2->ch = "Interview Mania";
printf("%s", c2->ch);
}
-
- Interveiw
- Mania
- Compilation Error
- Interview Mania
- None of these
Correct Option: D
Interview Mania