Classification Of Operators In C | Lesson-18 | Learn C Programming From Subhash K U

preview_player
Показать описание
This video talks about the different types of classification of operators in C.

In this lesson, we will be learning the two ways of classifying operators in C.

1. Based on number of operands in an operation
-unary operator
-binary operator
-ternary operator

2. Based on the type of operations performed by an operator
-arithmetic operator
-relational operator
-logical operator
-bitwise operator
-assignment operator
-increment/decrement operator
-conditional operator
- pointer operator
-casting operator
-sizeof operator
-special operator
-comma operator

To watch the next video of this C programming Series, click on the link below.

If you haven't yet watched the previous lesson of this series, make sure you watch it before moving further on this C programming series by clicking on the link below.

To be a part of our exclusive community on Telegram who are following this C programming series with you, make sure you click on the link below and join our Telegram Channel.

For notes, you can also refer the online book written by Subhash K U by following the link below.

Рекомендации по теме
Комментарии
Автор

1.Arithmetic
2.Relational
3. Logical
4.Bitwise
5.Conditional
6.Size of()
7.Comma
8.pointer
9.increment/decrement
10.Assignment
11.Casting
12.Special
thanks sir

manojkumar-kope
Автор

🔺Based on number of operands:
Unary
Binary
Ternary
🔺Based on type of operations
Arithmetic
Relational
Logical
Bitwise
Assignment
Increment/Decrement
Conditional
Pointer
Casting
Sizeof
Special
Comma

dhanyam
Автор

Based on number of operands:
✓ Unary (One operand)
✓Binary (Two operand)
✓Ternary (Three operand)

Based on type of Operation:
1.Arithmetic.
2.Relational.
3.Logical.
4.Bitwise.
5.Assignment.
6.Increment/Decrement.
7.Conditional.
8.Pointer.
9.Casting.
10.Size of.
11.Special.
12.Comma.

Thenmozhibca
Автор

Based on number of operands on an operator
1.unary: operates on single operand
2.binary: operates on 2 operands
3.ternary:more than 2 operands.eg conditional
#based on type of operation performed using an operators
1.arithmetic
2relational
3.logical
4.bitwise
5.assignment
6.increment or decrement
7.conditional
8.pointer
9.casting
10.size of
11.special
12.Comma

diptijadhav
Автор

In c language operator supported in two types:
1. based on number of operand are used in operator
a. Unary.
b. Binary.
C. Ternary.
a. Only one operand are used are called unary operator
Ex: +a, -b, ++a, --b;
b. Unary Operator: two operands are used are called unary operator.
Ex: a+b, a-b;
C. Ternary Operator: ternary operator are morethan two operands are called ternary operator.
2. Based on type of operands are used in operator
Arithmetic: +, -, /, *, %
Logical: &&, ||, ^, !
Bitwise: &, |, ^, <<, >>
Relational:<<, >>, <=, >=
Conditional: ?:
Derefernce: *, &
Size operator: ()
Subscription: []
Arrow: ->
Increment and decrement: ++, --

kasimanvenky
Автор

Based upon the number of operands
✓Unary (+a, -a)
✓Binary(a+b, a/b)
✓Ternary(?: conditional operator)
Based upon the types of operations performed using an operator
>Arithmetic
>Logical
>Bitwise
>Assignment
>Increment/Decrement
>Conditional
>Pointer
>Casting
>Size of
>Comma.

santhohari
Автор

Types of operator in c
Unary operator : only one operand (+a, -a, !a)
Binary operator : operating on 2 operand (a+b, a-b, a!b)
Ternary operator : operating on 3 or more operand .

_ganeshkasar
Автор

1)Based on no. of operands used on an operator:
Unary
Binary
Ternary
2)Based on type of operations :
Arithmetic
Logical
Bitwise
Increment/decrement
Conditional

shreyamukkawar
Автор

1.Based on No.of Operands
Unary
Binary
Ternary
2.Based on type of Operations
Arithmetic
Relational
Logical
Bitwise
Assignment
Increment/Decrement
Conditional
Pointer
Casting
Sizeof
Special
Comma

priyangam
Автор

Based on number of operands:
1.Unary:operates on single operand
2.Binary: operates on two operators
3.Ternary:operates on more than two operands (?: conditional operator)

Based on number of operators:
Arithmetic operators: +, -, /, *
Relational operators:==, >=, <=
Logical operators:&&(logical andand), ||(logical oror), not
Increment operator:++, --
Assignment operators:==, =>, <=, !=, also has some shorthand operators like /=, %=..
sizeof : check for size of variable
casting:To convert one data type to another
pointer : *(dereferencing), &(referencing)
special:(), .
comma:,

devaarasi
Автор

Two ways to classify an operators:
1.Based on the type of operands:
* Unary
* Binary
* Ternary
2.Based on type of operation performed by an operator.
* Arithmetic
* Relational
* Logical
* Bitwise
* Conditional
* Size of()
* Comma
* pointer
* increment/decrement
* Assignment
* Casting
* Special

durgasyamalaperuri
Автор

Operator can be classified as
1. Based on operands
Unary, binary and ternary
2.based on operation
Arithmetic, relational, logical, bitwise, assignment, increment/decrement, conditional, pointer, casting, sizeof, special and comma operators

sushanthchandan
Автор

Two way of classifying operators :

1.based on number of operands used on and operator
unary, binary, ternary .

2.based on type of operations performed using and operator
arithmetic
relational
logical
bitwise
assignment
increment or decreament,
conditional,
pointer,
casting,
size of,
spatial

dipalipotdar
Автор

Sir, as + and - is an binary operator
But in the second slide you used them to explain unary operator?

apurupareddykuppam
Автор

•Arithmetic Operator
•Relational Operator
•Logical Operator
•Bitwise Operator
•Assignment Operator
•Increment or Decrement Operator
•Conditional Operator
•Pointer Operator
•Casting Operator
•Sizeof Operator
•Special Operator
•Comma Operator

s_hilpa
welcome to shbcf.ru