Vidyalelo
C Programming · Q58

Structure and Union

Programming · C Programming · question 58

Q58

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

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

Answer: Option B

Solution

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