πŸ“Š C Programming
Q. What is the output of C program?
Code:
int main()
{
    struct laptop
    {
        int cost;
        char brand[10];
    };
    struct laptop L1={5000,"ACER"};
    struct laptop L2={6000,"IBM"};
    printf("Name=%s",L1.brand);
    return 0;
}
  • (A) IBM
  • (B) ACER
  • (C) Compiler error
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) ACER

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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