Jul 12, 2024
a + ba - ba * ba / b (result type may vary)a % b (gives remainder)*== (Equals to)!= (Not equals to)> (Greater than)< (Less than)>= (Greater than or equal to)<= (Less than or equal to)a == b, returns true if a is equal to b.&& (Logical AND): True if both expressions are true.|| (Logical OR): True if at least one expression is true.! (Logical NOT): True if the expression is false.a && b+=: a += b is same as a = a + b-=: a -= b*=: a *= b/=: a /= b%=: a %= ba += 1& (AND)| (OR)^ (XOR)~ (NOT)<< (Left shift)>> (Right shift)a & ba | ba ^ ba << b (shifts bits left)a >> b (shifts bits right)condition ? expression1 : expression2a = (b > c) ? b : c* (dereferencing), & (address of).+ (Unary Plus)- (Unary Minus)++ (Increment)-- (Decrement)! (Logical NOT)~ (Bitwise NOT)a++ vs ++a* has higher precedence than +.=.a - b + c (left-to-right) computes as (a - b) + c.*