Vidyalelo
C Programming · Q121

Structure and Union

Programming · C Programming · question 121

Q121

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

A.
3.000000
B.
0.000000
Answer
C.
Compile time error
D.
Undefined behaviour

Answer: Option B

Solution

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