C++ MQCs with Explanation (CHAPTER 5: CLASSES AND OBJECTS

Which one of the following is FALSE?

  1. The address of a class member can be assigned to a pointer variable
  2. When making a member function const, the qualifier const must be used in both declaration and definition
  3. A class can be defined inside a function
  4. None of the above



Answer: 
Option c: A class can be defined inside a function

Explanation Here

Post a Comment

0 Comments