Consider the sample code given below and answer the question that
follows.
class SomeClass
{
int x;
public:
SomeClass (int xx) : x(xx) {}
};
SomeClass x(10);
SomeClass y(x);
What is wrong with the sample code above?
Correct Answer: The code will compile without errors
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C++ MCQ Questions