Interview Question 3540

Created by admin on Sat, 17/11/2012 - 12:24
Explanation: 
You should not initialize variables in declaration.
Question: 

#include main()
{
struct xx {
int x=3;
char name[]="hello";
};
struct xx *s;
printf("%d",s->x);
printf("%s",s->name);
}

Language: 
Answer: 

Compiler Error