#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) 3.000000
b) Compile time error
c) Undefined behaviour
d) 1.000000
What will be the output of the following C code according to C99 standard?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code according to C99 standard?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!