A

Admin • 833K Points
Coach

Q. What is the output of C program with structures?

Code:
int main()
{
struct tree
{
int h;
}
struct tree tree1;
tree1.h=10;
printf("Height=%d",tree1.h);
return 0;
}
  • (A) Height=0
  • (B) Height=1
  • (C) Height=10
  • (D) Compiler error
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.