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