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[2], r[2];
s[1] = s[0] = "shal";
printf("%s%s", s[0].name, s[1].name);
}

A. shal shal B. Nothing
C. Compile time error D. Varies

Answer: Option C
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion