Vidyalelo
C Programming · Q180

Structure and Union

Programming · C Programming · question 180

Q180

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; printf("%f ", x.f);

A.
0.000000
Answer
B.
Somegarbagevalue
C.
Compile time error
D.
None of the mentioned

Answer: Option A

Solution

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