Programming Languages C Objective
Jan 02, 2013

main()
{
struct
{
int i;
}xyz;
(*xyz)->i=10;
printf("%d",xyz.i);
}
What is the output of this program ?

Choose the correct answer:
A) program will not compile
B) 10
C) god only knows
D) address of I
Detailed Explanation

The output of the following program is 10. So the answer is b.

Discussion (0)

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

Share Your Thoughts
Feedback