C - Structures,Unions - Discussion

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

 



Q.

What is the output of this C code?

#include
struct shalu
{
char *c;
};
void main()
{
struct shalu *s;
s->c = "hi";
printf("%s", s->c);
}

A. hi B. Segmentation fault
C. Run time error D. Nothing

Answer: Option B
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion