C - Structures,Unions - Discussion

You Are Here :: Home > C > Structures,Unions - Discussion

 



Q.

What is the output of this C code?

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

A. Compile time error B. Nothing
C. Junk values D. st st

Answer: Option D
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion