C - Structures,Unions - Discussion

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

 



Q.

What is the output of this C code?

#include
struct move
{
char *c;
};
void main()
{
struct move m;
struct move *s = &m;
(*s).c = "front";
printf("%s", m.c);
}

A. Run time error B. Nothing
C. Varies D. front

Answer: Option D
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion