Vidyalelo
C Programming · Q112

Structure and Union

Programming · C Programming · question 112

Q112

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

A.
Compile time error
B.
0.000000 10
Answer
C.
Somegarbage value 10
D.
0 10

Answer: Option B

Solution

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