operator in c : Arithmatic, Logical, Special, more operators

Hi bloggers. aj ki iss post me ham operators ke bare me jaanege. operator ek prakar ka symbol hota hai in symbol ka use compiler ke jariye kisi specific arithmetical And logical operations ko perform karne ke liye kiya jata hai. AS:-  c=a+b;

yaha per = aur + operators hai. aur operator ke saath use kiye jaane wale variable aur values ko operands kaha jata hai. it means a,b + operator ke operands hai aur c, (a+b) = operator ke operands hai.

operands ke aadhar per C programming me operators ko kai bhago me baata ja sakta hai.

Operator in c

Urary

C programming me use hone wale aise operators jinke saath kewal ek operand ka use kiya jata hai unhe Urary operator kaha jata hai. AS:- ++ , —

Binary

aise operators jinhe use karne ke liye 2 operands ki jarurat hoti hai unhe binary operators kaha jata hai. AS:- +,-,*,/,%,<,>= etc..

Jerrary 

C programming me only 1 jerrary operator hota hai iske liye 3 operands use kiye jate hai. AS:- ? :

also read:- Data type in c language full information

also read:- Website ki traffic kaise badhaye in hindi

 

Types of Operator in c based on Work

1.. Arithmetic operators

C program me aise symbols jinka use Arithmetic operations ko perform karne ke liye kiya jata hai Unhe Arithmetic operator kaha jata hai. Such AS:-

+        addition

–         Subtraction

*        multiply

/        Division

%       Modulus

Ye Sabhi Arithmetic operators kahlate hai..

2.. Relational Operators

Aise Symbols jinka use 2 aur 2 se jyada variables ke bich relation find karne ke liye kiya jata hai unhe relational operator kaha jata hai. inka use jyadater Conditional Statement me hota hai.. Such AS:-

>     Greater then

<     less then

>=   Greater then or equal to

<=   Less then or equal to

==   equal to

!=    Not equal to

3.. Logical operator

C programming me 2 ya 2 se jyada Wale statement ko Combine karne ke liye use kiye jaane Wale Symbol ko Logical Operator kaha jaata hai. Such AS:-

&&    AND

::       Or

!        Not

4.. Conditional Operator

C programming me Only 1 conditional operator hota hai. jiska use program me condition apply karke Condition ke TRUE aur False hone per different operations ko perform karne ke liye hota hai.  ? :

also read:- Types Of Printers in hindi language

also read:- Types of Operating system in hindi

5.. Assignment Operator

Iss ka use right side ke statement ko solve karke Left side me assign karne ke liye hota hai. iska use kisi variable ki values ko assign karne ke liye bhi kiya jaata hai. Such AS:-  c = a+b;

yaha per = ek assignment operator hai. jo ki a aur b ki values ko add karke left side c me assign kar deta hai.

6.. increment/decrement operators

in operators ke saath only 1 operand ka use kiya jaata hai. increment apne operand ki value 1 increase kar deta hai jabki Decrement apne operand ki value ko 1 decrease kar deta hai. Ex-

++       increment

—         decrement

7.. Access Operators

C programming me 2 access operators hai. . (dot), -> (arrow)  inka use kisi user defined data type ke variable ke dwara data types ke members ko access karne ke liye kiya jata hai.

8.. Special operators

operator in c programming me kuch special operation ko perform karne ke liye kuch special symbols ka use kiya jaata hai jinhe special operator kahte hai. Such AS:- ,(comma)

 

also read:- Learn Basic about C programming in hindi

also read:- Samole C programs in hindi language

also read:-  What is Cache memory in hindi Full information

Last Words

aj ki is post operator in c me mine apko sabhi operators Such AS:- Arithmetic, logical, relational, Conditional, Assignment, Access, increment/decrement aur special operators ke baare me baataya hai. Ager Apko meri yah post Pasand aayi ho to Plz Share it.

Ager apke paas me topic se related koi question ho to aap comment ke jaariye mujhse puch sakte hai..

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons