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