Single Choice Not Set

Q What is the output of this C code?

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

ID: #2645 Structure in C Language 3,486 views
Question Info
#2645Q 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 hello
  • D Varies
Correct Answer

Explanation

Compile time error

Share This Question

Challenge a friend or share with your study group.