x); printf("%"> Determine Output: void main() { struct xx { int x=3; char name[] = "hello"; }; s x); printf("%"> x); printf("%" /> x); printf("%" />
Sail E0 Webinar
Question
Determine Output:
void main()
{
struct xx
{
int x=3;
char name[] = "hello";
};
struct xx *s = malloc(sizeof(struct xx));
printf("%d", s->x);
printf("%s", s->name);
}
Options:
A .  3 hello
B .  Compiler Error
C .  Linking error
D .  None of these
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers