Q155
What will be the output of the following C code? #include struct point int x; int y; ; struct notpoint int x; int y; ; struct point foo(); int main() struct point p = 1; struct notpoint p1 = 2, 3; p1 = foo(); printf("%d ", p1.x); struct point foo() struct point temp = 1, 2; return temp;
A.
Compile time error
AnswerB.
1
C.
2
D.
Undefined behaviour
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board