Vidyalelo
C Programming · Q134

Structure and Union

Programming · C Programming · question 134

Q134

What will be the output of the following C code? #include typedef struct p int x, y; ; int main() p k1 = 1, 2; 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