The minus sign as unary operator

As a unary operator, the minus sign causes the algebraic sign of the right operand to be changed.

For example, the following two statements cause a value of -5 to be stored in the variable x.

int y = 5;
int x = -y;