Single Choice Not Set

QWhat is the output of this C code?

    #include <stdio.h>
    void main()
    {
        struct student
        {
            int no;
            char name[20];
        };
        struct student s;
        s.no = 8;
        printf("%d", s.no);
    }

ID: #2647 Structure in C Language 2,060 views
Question Info
#2647Q ID
Not SetDifficulty
Structure in C LanguageTopic

Choose the Best Option

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

  • A Nothing
  • B Compile time error
  • C Junk
  • D 8
Correct Answer

Explanation

8

Share This Question

Challenge a friend or share with your study group.