Can the following C code be compiled successfully?
Posted: Wed Jul 13, 2022 7:54 pm
#include <stdio.h> struct p { int k; char c; float f; }; int main() { struct p x = {.c = 97, .f = 3, .k = 1}; printf("%f\n", x.f); }
a) Yes
b) No
c) Depends on the standard
d) Depends on the platform
a) Yes
b) No
c) Depends on the standard
d) Depends on the platform