MCQ Single Best Answer Not Set

QWhat is the output of this C code?

    #include <stdio.h>
    struct student
    {
        char *name;
    };
    void main()
    {
        struct student s, m;
        s.name = "st";
        m = s;
        printf("%s%s", s.name, m.name);
    }

ID: #2632 Structure in C Language 3,618 views
Question Info
#2632Q 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 Nothing
  • C Junk values
  • D st st
Correct Answer: Option D

Explanation

None
No Previous Next Question

Share This Question

Challenge a friend or share with your study group.