What will be the output of the following C++ code?
24 views
- 2 1 (Correct Answer)
- 1 2
- 1 1
- 2 2
Explanation
In this as we have first used int to define the objects of class Test so count is increased to 2 for int types and declared the double object once therefore the constructor is called only once hence value of count is 1.