Single Choice Not Set

QWhat is the output of this C code(according to C99 standard)?
 #include 
    struct p
    {
        int k;
        char c;
        float f;
    };
    int main()
    {
        struct p x = {.c = 97, .k = 1, 3};
        printf("%f \n", x.f);
    }

ID: #2656 Structure in C Language 1,729 views
Question Info
#2656Q ID
Not SetDifficulty
Structure in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 3.000000
  • B 0.000000
  • C Compile time error
  • D Undefined behaviour
Correct Answer

Explanation

0.000000

Share This Question

Challenge a friend or share with your study group.