8 Type Of Operator In C Language.
Hello Programmer,
Today we will discuss the most important topic which is Operator.
Actually, the operator is the most important topic of every programming language.
Definition:
An operator is a symbol which specifies some particular operation to be performed on operand or on data.
An operator is any symbol like a plus sign, subtract sign, multiply sign, divide sign etc. all symbol known as an operator. The data on which an operator is applied is known as an operand.
Example: 45+57
In this example 45 and 57 is operand and a plus sign is an operator.
All language is incomplete without the operator so the operator is the most important topic in all language.
In c language, we will study 8 operator which is used in c language.
8 Type Of Operator Available In C language:
1) Arithmetic Operators
Now we will discuss each operator one by one.
1) Arithmetic Operator:
As the name suggests arithmetic operator is those type of operator which is used to perform an arithmetic operation.
Example: Addition, Subtraction, Multiplication etc.
Arithmetic operators are used for calculation in a mathematical expression. There is a number of operators available in c language.
Operator Meaning Example Result
+ Addition 12+9 21
- Subtraction 10-2 8
* Multiplication 15*2 30
/ Division 10/2 5
% Modulus 10%2 0
Whenever you use arithmetic operator one thing you remember that when both operand are integers, the result also obtained integer. When you want to obtain real value in the result, at least one of the operand must be real i.e. float or double.
Index Of C Language Topic:
Sharing Is Caring...
Comments :
Post a Comment