-
What will be the output of the following C code?
#include <stdio.h>
struct Result
{
int n1;
char n2;
struct Result *p;
};
int main()
{
struct Result Result = {100, 200, &Result};
printf("%d\n", Result.p->n1);
return 0;
}
-
- 200
- Compilation Error
- 100
- Undefined behaviour
- None of these
Correct Option: C
100