Bitwise Operator are used for manipulating data at
bit level. These operators are used for testing the bits, or shifting them
right or left. Bitwise
The most common used unary operator is unary minus,
where a numerical constant, variable expression is preceded by a minus sign.
Unary minus operator is distinctly different from the
arithmetic operator which denotes subtraction ( - ). The subtraction operator
requires two separate operands.
Several examples of unary minus operator
-743 -
0X7FFF -0.2 -5E-8
-r00+1 -
(x+y) -3 *(x+y)
In C, all numeric constants and variable are
considered as positive. So, unary plus is not written as unary minus such as
+743 = 743
+(x+y) = x+y
Comments
Post a Comment