cpp decrement operator code example Example: decrement c++ int x = 5; x--; cout << x << endl; //outputs 4