Q. Which of the following is true about C++ structures?

  • (A) They cannot have member functions
  • (B) They support inheritance
  • (C) They can have both data members and member functions
  • (D) They cannot be used to define objects
πŸ’¬ Discuss
βœ… Correct Answer: (C) They can have both data members and member functions
Explanation: C++ structures can have both data members and member functions, similar to classes.
Explanation by: Vinay
C++ structures can have both data members and member functions, similar to classes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
88%
Success Rate