Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++'

Disable ads (and more) with a membership for a one time $2.99 payment

Test your C++ skills with our quiz based on Bruce Eckel's 'Thinking in C++'. Dive into object-oriented programming, advanced topics, and fundamentals. Perfect for learners and experts alike. Assess your knowledge and become a C++ master!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What does the author suggest about rewriting existing C code in C++?

  1. Always recommended for practice

  2. Not recommended unless functional changes are required

  3. Mandatory for professional development

  4. Only if it reduces code size

The correct answer is: Not recommended unless functional changes are required

The author suggests that rewriting existing C code in C++ is not recommended unless there are functional changes that need to be made. This means that simply rewriting code in a different language is not necessary and may not be beneficial. The other options may seem logical, but they are not necessarily applicable to this specific scenario. For example, rewriting code for practice may be helpful in some cases, but it is not always necessary or the best use of time. Similarly, it may not be mandatory for professional development or reducing code size.