what is a decrement in c++ definition code example Example: decrement c++ int x = 5; x--; cout << x << endl; //outputs 4