CPA practice question 14 of 30

What is the output of the program? #include using namespace std; class BaseC { int i; public: BaseC() { i=?1;} BaseC(int i) { i=i; } void seti(int a)…

Choose your answer, then check it against the explanation.

What is the output of the program? #include using namespace std; class BaseC { int i; public: BaseC() { i=?1;} BaseC(int i) { i=i; } void seti(int a) { i = a; }; void Print() { cout <seti(10); o?>Print(); }
Answer options
Question 14 of 30

Keep practicing

Take the free CPA practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other CPA practice questions

Scroll to Top