Quiz on C++ Increment and Decrement Operators



1. What are the two types of increment operators in C++?
2. What does the postfix increment operator do?
3. What is the effect of using the prefix decrement operator?
4. Which operator would you use to both increment and assign a value in one operation?
5. How do you generally declare an integer variable in C++?

Advertisements