C Operators
C language includes a rich set of integrated operators. An operator is a symbol used to perform a certain application of mathematics or logic. Operators are used in C programming language to manipulating the data and variables in applications and are part of mathematical or logical expressions. In other terms, we may say the operands are handled by an operator.
There are major types of operators in C:
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Conditional Operators
These are operators, we know in this c tutorial
1. Arithmetic operators
Both simple arithmetic operators are provided by C.
The table below shows all of the essential arithmetic operators.
2. Relational operators
The table below lists all C assisted Partnership Operators.
3.Logical operators
C language supports 3 logical operators. Assume a = 1 and b = 0,
4.Bitwise operators
Bitwise operators perform Bit Level Data Manipulation. Such operators also do bits change from right to left. Bitwise operators are not used for floating or duplicating.
5. Assignment Operators
Conditional Operators
The C-language conditional operators are identified by two more names
- Ternary Operator
- ?: Operator
It is basically the if the condition that we use in C language decision-taking, but we transform the if condition expression into a short and easy operator with conditional operators.
The syntax of a conditional operator is :
expression 1? expression 2: expression 3
Comments
Post a Comment