πŸ“Š C++
Q. Which of the following is the correct way to define a structure in C++?
  • (A) struct MyStruct { int x; float y; };
  • (B) class MyStruct { int x; float y; };
  • (C) union MyStruct { int x; float y; };
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) struct MyStruct { int x; float y; };

Explanation: The correct way to define a structure is 'struct MyStruct { int x; float y; };'.

Explanation by: Admin
The correct way to define a structure is 'struct MyStruct { int x; float y; };'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
119
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
98%
Success Rate