Question Detail

Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void
Similar Questions :

1. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

2. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

3. The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor

4. 78. If new operator is used, then the constructor function is ?

  • Copy constructor
  • Default constructor
  • Static constructor
  • Dynamic constructor

5. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual
Read more from - C++ Programming Questions Answers - Set 2