Single Choice Not Set

QWhat is the output of this C code?

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

ID: #2653 Structure in C Language 1,750 views
Question Info
#2653Q 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 10 10
  • C Depends on the standard
  • D Depends on the compiler
Correct Answer

Explanation

10 10

Share This Question

Challenge a friend or share with your study group.