Vidyalelo
C Programming · Q187

Structure and Union

Programming · C Programming · question 187

Q187

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

A.
Compile time error
Answer
B.
10
C.
Undefined behaviour
D.
Segmentation fault

Answer: Option A

Solution

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