Which constructor will be called by the following lines of code?

(i) Student S1;

(ii) Student S2 = S1;

1
First copy constructor, then default constructor.
2
First default constructor, then copy constructor.
3
Default constructor for both lines of code.
4
Copy constructor for both lines of code.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation