Vidyalelo
C Programming · Q38

Structure and Union

Programming · C Programming · question 38

Q38

Can the following C code be compiled successfully? #include struct p int k; char c; float f; ; int main() struct p x = .c = 97, .f = 3, .k = 1; printf("%f ", x.f);

A.
Yes
B.
No
C.
Depends on the standard
Answer
D.
Depends on the platform

Answer: Option C

Solution

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