Comprehensive Guide to C Language Operators
Unary Operators
Unary operators operate on single operands and include:
! (logical NOT)
++ (increment)
-- (decrement)
& (address-of)
(dereference)
(unary plus)
(unary minus)
~ (bitwise NOT)
sizeof
(type) (type cast)
Increment and Decrement Operators
Prefix Increment
int counter = 10;
int result = ++counter;
printf("counte ...
Posted on Fri, 15 May 2026 05:00:34 +0000 by MsShelle