Single Choice Not Set

QWhat is the output of this C code?

    #include <stdio.h>
    struct p
    {
        int k;
        char c;
        float f;
    };
    int p = 10;
    int main()
    {
        struct p x = {1, 97};
        printf("%f %d\n", x.f, p);
    }

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

Choose the Best Option

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

  • A Compile time error
  • B 0.000000 10
  • C Somegarbage value 10
  • D 0 10
Correct Answer

Explanation

0.000000 10

Share This Question

Challenge a friend or share with your study group.