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\n", x.f);}
#include struct p{ int k; char c; float f;};int main(){ struct p x = {.c = 97, .f = 3, .k = 1}; printf("%f\n", x.f);} Can the following C code be compiled successfully?
#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);} Correct Answer Depends on the standard
মোঃ আরিফুল ইসলাম
Feb 20, 2025