A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 16
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

C++ structures can have both data members and member functions, similar to classes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.