#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
Can the following C code be compiled successfully?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Can the following C code be compiled successfully?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!