Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ Unary Operators ] ... have only one operand (usually the Rvalue); e.g., -x. - Unary minus: change sign of Rvalue. + Unary plus: return value of Rvalue (no change). ~ One's Complement: invert all bits in Rvalue. ! Logical Not: replace Rvalue TRUE with FALSE or FALSE with TRUE. (0 is FALSE, anything else is TRUE.) * Indirection (Rvalue must be a pointer): returns what the pointer was pointing to. & Address (Rvalue must NOT be a register): returns the address of the Rvalue. ++ Increment: add one to variable (changes variable). Pre-increment (++Rvalue) returns incremented Rvalue. Post-increment (Lvalue++) returns Lvalue before increment. -- Decrement: subtract one from variable (changes variable). Pre-decrement (--Rvalue) returns decremented value. Post-decrement (Lvalue--) returns value before decrement. sizeof returns number of bytes for type or variable name. (<type>) converts Rvalue from one data type to another, where <type> is the desired data type.