C++ examples for Operator:Increment and decrement operators
The Increment and Decrement Operators
#include <iostream> using namespace std; int main(int argc, char *argv []) { int value = 0; cout << value << endl; cout << value++ << endl; cout << ++value << endl; cout << value-- << endl; cout << --value << endl; return 0; }