C operator
C operator
Operators in C
Last Updated : 11 Oct, 2024
What is a C Operator?
An operator in C can be defined as the symbol that helps us to perform
some specific mathematical, relational, bitwise, conditional, or logical
computations on values and variables. The values and variables used
with operators are called operands. So we can say that the operators
are the symbols that perform operations on operands.
For example,
c = a + b;
https://www.geeksforgeeks.org/operators-in-c/ 1/27
1/26/25, 6:19 PM Operators in C - GeeksforGeeks
Here, ‘+’ is the operator known as the addition operator, and ‘a’ and ‘b’
are operands. The addition operator tells the compiler to add both of
the operands ‘a’ and ‘b’. To dive deeper into how operators are used
with data structures, the C Programming Course Online with Data
Structures covers this topic thoroughly.
Types of Operators in C
C language provides a wide range of operators that can be classified
into 6 types based on their functionality:
1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Other Operators
1. Arithmetic Operations in C
The arithmetic operators are used to perform arithmetic/mathematical
operations on operands. There are 9 arithmetic operators in C language:
1 Adds two
+ Plus numeric a+b
values.
2 Subtracts
https://www.geeksforgeeks.org/operators-in-c/ 2/27