πŸ“Š C Programming
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;
}
  • (A) 0 0
  • (B) -1 -1
  • (C) NULL NULL
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0 0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
212
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate