A
Q. What is the output of C program with structures?
Code:
int main()
{
struct tree
{
int h;
int rate;
};
struct tree tree1={0};
printf("%d ",tree1.rate);
printf("%d",tree1.h);
return 0;
}
{
struct tree
{
int h;
int rate;
};
struct tree tree1={0};
printf("%d ",tree1.rate);
printf("%d",tree1.h);
return 0;
}
- Correct Answer - Option(A)
- Views: 24
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.