Hi All,
Why do we need a unary + operator? Almost all the languages from C, C++, Java support it. What is the use of it?
Regards,
Karan S
Hi All,
Why do we need a unary + operator? Almost all the languages from C, C++, Java support it. What is the use of it?
Regards,
Karan S
I want to know the use of the unary + operator. See there is a unary - operator which has a use i.e., when applied to a number variable it actually multiplies it by -1 and produces the result.
But applying a unary + before a variable does nothing. The value remains the same. So why do we need a unary + operator?
>What is the use of it?
Symmetry with unary -.
-Prelude
My best code is written with the delete key.