Programming Languages C Objective
Mar 07, 2013

#include<stdio.h>

struct game

{

int level;

int score;

struct player

{

char *name;

}g2={"anil"};

}g3={10,200};

void main()

{

struct game g1=g3;

clrscr();

printf("%d  %d  %s",g1.level,g1.score,g1.g2.name);

getch();

}

What will output when you compile and run the above code?

Choose the correct answer:
A) 10 200 anil
B) 200 10 anil
C) 10 200 null
D) Compiler error
Detailed Explanation

No Explanation

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback