C Operators
Operators in C are used to perform various operation on variables or data to generate new result.
For example, to add two numbers we will use '+' operator.
Here is list of basic C operators
Category | Operator | Description |
---|---|---|
Arithmetic operators | +, -, *, /, % | Used to perform arithmetic operations |
Logical operators | ||, &&, ! | Used to perform logical operations |
Relational operators | !=, ==, >, <, >=, <= | Used to perform relational operations |
Here is example of using arithmetic operators.