Single Choice
Not Set
QWhat is the output of this C code?
#include
struct student fun(void)
{
struct student
{
char *name;
};
struct student s;
s.name = "alan";
return s;
}
void main()
{
struct student m = fun();
printf("%s", m.name);
}
ID: #2664
Structure in C Language
852 views
Question Info
#2664Q ID
Not SetDifficulty
Structure in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Compile time error
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic