Operators and Expressions

Operators in C are symbols or keywords that perform various operations on operands (variables, constants, or expressions). They are used to manipulate data, perform calculations, compare values, and control program flow. C provides a wide range of operators categorized into different types.

Arithmetic Operators:

Assignment Operators:

Relational Operators:

Logical Operators:


Bitwise Operators:

Bitwise AND (&):

Bitwise OR (|)

Bitwise XOR (^):

Bitwise NOT (~):

Left Shift (<<):

Right Shift (>>):

Increment and Decrement Operators: