# C Operators

Operators in C programming are symbols that represent operations or calculations. They allow you to perform various tasks, such as **arithmetic operations,** comparisons, and logical manipulations.

## Arithmetic Operators

Arithmetic operators are used for performing mathematical calculations.

**Examples:**

+ (addition), - (subtraction), * (multiplication), / (division), % (modulo, remainder).

## Assignment Operators

Assignment operators are used to assign values to variables.

**Examples:**

= (assignment), += (addition assignment), -= (subtraction assignment), *= (multiplication assignment), /= (division assignment), %= (modulo assignment).

## Comparison Operators

Comparison operators are used to **compare two values** and produce a Boolean result (true or false).

**Examples:**

== (equal to), != (not equal to), **< (less than),** > (greater than), **<= (less than or equal to),** >= (greater than or equal to).

## Logical Operators

Logical operators are used to perform logical operations on Boolean values.

**Examples:**

**&& (logical AND),**|| (logical OR), ! (logical NOT).

## Increment and Decrement Operators

Increment (++) and decrement (--) operators are used to increase or decrease the value of a variable by 1. They can be used as prefix (++i) or postfix (i++).

## Bitwise Operators

Bitwise operators perform operations on individual bits of integers.

**Examples:**

**& (bitwise AND),**| (bitwise OR),

**^ (bitwise XOR),**~ (bitwise NOT),

**<< (left shift),**>> (right shift).

These operators are essential tools for performing various **calculations and comparisons in C programming,** enabling you to manipulate data and control program flow effectively.

### Conclusion

Operators in C programming are symbols that perform various operations on data. They include arithmetic operators for mathematical calculations, assignment operators for variable assignment, comparison operators for evaluating conditions, **logical operators for Boolean logic,** and more. These operators are fundamental to performing a wide range of tasks and controlling program behavior in C.

**Related Topics**