Vidyalelo
C Programming · Q130

Structure and Union

Programming · C Programming · question 130

Q130

What will be the output of the following C code? #include struct int k; char c; p; int p = 10; int main() p.k = 10; printf("%d %d ", p.k, p);

A.
Compile time error
Answer
B.
10 10
C.
Depends on the standard
D.
Depends on the compiler

Answer: Option A

Solution

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