Multiple choice

Which of the following variables can be used as an argument to copy constructor?

  1. Static variable

  2. Pointer variable

  3. Reference variable

  4. new

  5. delete

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This variable can be used as an argument to the copy constructor as argument can only be passed by reference in a copy constructor.