The + (unary plus) operator maintains the value of the operand. The operand can have any arithmetic type or pointer type. The result is not an
What does unary plus do in C++?
The result of the unary plus operator (+) is the value of its operand. The operand to the unary plus operator must be of an arithmetic type. The - (unary minus) operator negates the value of the operand. ... The operand must be of arithmetic or pointer type (or an expression that evaluates to arithmetic or pointer type).
What is the point of unary plus?
The unary plus operator ( + ) precedes its operand and evaluates to its operand but attempts to convert it into a number, if it isn't already.