-
What will be the output of the following C code?
#include <stdio.h>
struct Employee
{
char *ch;
};
void main()
{
struct Employee e;
struct Employee *s = &e;
(*s).ch = "Interview Mania";
printf("%p\n%p\n", s, &e);
}
-
- Interview Mania
- Different memory address
- Same memory address
- Compilation Error
- None of these
Correct Option: C
Same memory address