Q. What is the correct way to define a structure?

  • (A) structure person { int age; };
  • (B) struct { int age; } person;
  • (C) struct person { int age; };
  • (D) define struct { int age; };
πŸ’¬ Discuss
βœ… Correct Answer: (C) struct person { int age; };
Explanation: Correct syntax for defining a structure named 'person'.
Explanation by: Mr. Dubey
Correct syntax for defining a structure named 'person'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate