C programming
June 3, 2026 1 min read

Operators in C

HS
HEMANT SINGH
Technical Writer & Educator

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