Vidyalelo
C Programming · Q138

Structure and Union

Programming · C Programming · question 138

Q138

What will be the output of the following C code? #include typedef struct p int x, y; k = 1, 2; int main() p k1 = k; printf("%d ", k1.x);

A.
Compile time error
Answer
B.
1
C.
0
D.
Depends on the standard

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board