Programming Languages C Objective
Mar 07, 2013

#include<stdio.h>

struct game

{

int level;

int score;

struct player

{

char *name;

}g2;

}g1;

void main()

{

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) 0 0 (null)
B) Run time error
C) Compiler error
D) Syntax error
Detailed Explanation

No Explanation

Discussion (0)

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

Share Your Thoughts
Feedback