Tuesday 12 February 2013

Unary Operators in C Programming Language



The unary operator ( so called because it operates on a single operand ) prefixed to an integer constant (or variable) tells the compiler to reverse the sign by substracting the value (or variable) fro zero. The effect it has is similar to using the -sign to indicate a number less than zero, e.g. -12.


0 comments:

Post a Comment

Powered by Blogger.