Operators in C

Operators in C

Arithmetic Operators in C

Symbols Result
+ Add two number, concat string
- Subtract two number
* Multiplication
/ Divide numbers, return quotient
% Divide numbers, return remainder
** Return exponent

Relational Operators in C

< Return true if left operand is smaller than right operand
<= Return true if left operand is smaller or equal than right operand
> Return true if left operand is greater than right operand
>= Return true if left operand is greater or equal than right operand
!= Return true if left operand is not equal to right operand
== Return true if left operand is equal to right operand

Logical Operators in C

&& Return true if all given conditions are true otherwise false
|| Return true if one or more given conditions are true otherwise false
! Return invert of given input
© 2016 - 2022, All Rights are Reserved.