πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Height=10

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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