Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    void main()
    {
    struct student
    {
    int no;
    char name[20];
    };
    struct student s;
    s.no = 8;
    printf("%d", s.no);
    }
  2. A.
    Nothing
    B.
    Compile time error
    C.
    Junk
    D.
    8

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment