A
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;
}
{
struct tree
{
int h;
}
struct tree tree1;
tree1.h=10;
printf("Height=%d",tree1.h);
return 0;
}
- Correct Answer - Option(C)
- Views: 26
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.