C Operators in Hindi – Types, Examples और Complete Guide

1

C Language में operators सबसे important concept है। ये program में variables और values पर operations perform करने का काम करते हैं।
जैसे जोड़ना, घटाना, compare करना, logical decision लेना, value assign करना आदि।

इस article में हम C के सभी operators को आसान Hindi में examples, tables और uses के साथ समझेंगे।


🔵 Operators क्या होते हैं?

Operator एक *symbol (+, -, , /, =, <, >, &&, ||) होता है जो compiler को बताता है कि दो values या variables पर कौन सा operation perform करना है।

Example:

a + b   // + is an operator

C language में कुल 6 मुख्य types के operators होते हैं:


🟣 C Operators के 6 मुख्य प्रकार

  1. Arithmetic Operators
  2. Relational Operators
  3. Logical Operators
  4. Assignment Operators
  5. Increment & Decrement Operators
  6. Bitwise Operators

नीचे हम इन सभी को deep examples के साथ समझेंगे।


🟠 1. Arithmetic Operators (गणितीय ऑपरेटर)

ये operators गणितीय calculations के लिए उपयोग होते हैं।

OperatorUseMeaning
+a + bAddition
a – bSubtraction
*a * bMultiplication
/a / bDivision
%a % bModulus (remainder)

Example:

int a = 10, b = 3;
printf("%d", a % b);  // Output = 1

🟢 2. Relational Operators (Comparison के लिए)

Used to compare two values.
Result always true (1) या false (0) मिलता है।

OperatorMeaning
==Equal
!=Not Equal
>Greater
<Less
>=Greater or Equal
<=Less or Equal

Example:

int a = 5, b = 8;
printf("%d", a < b);  // Output = 1 (true)

🟣 3. Logical Operators (AND, OR, NOT)

Conditions check करने के लिए सबसे important operator।

OperatorSymbolMeaning
Logical AND&&दोनों true होने चाहिए
Logical OR
Logical NOT!उल्टा परिणाम देता है

Example:

int age = 20;
printf("%d", age > 18 && age < 30);  
// Output = 1 (true)

🟠 4. Assignment Operators (Value Assign करने के लिए)

OperatorMeaning
=Assign
+=Add and assign
-=Subtract and assign
*=Multiply and assign
/=Divide and assign
%=Modulus and assign

Example:

int a = 10;
a += 5;   // a = a + 5
printf("%d", a); // Output = 15

🔵 5. Increment & Decrement Operators (++ , –)

OperatorMeaning
++Increase value by 1
Decrease value by 1

Types:

  • Pre-increment → ++a
  • Post-increment → a++

Example:

int a = 5;
printf("%d", ++a);  // Output = 6

🟣 6. Bitwise Operators (Binary operations)

ये operators bit-level operations perform करते हैं।

OperatorSymbolMeaning
AND&दोनों bits 1 हों
OR|किसी एक bit का 1 होना
XOR^अलग bits हों
NOT~Bits उलट देना
Left Shift<<Bits left शिफ्ट
Right Shift>>Bits right शिफ्ट

Example:

int a = 5;   // 0101
printf("%d", a << 1);  // Output = 10

🟦 Operator Precedence (Priority Table)

PriorityOperator
Highest++, —
High*, /, %
Medium+, –
Low<, >, <=, >=
Lower==, !=
Lowest=, +=, -=

🌟 Real-Life Example (Operators Combined)

int a = 10, b = 5, c;
c = (a + b) * 2;
printf("%d", c); // Output = 30

👉 Related: C Variables in Hindi

Operators variables पर operations करते हैं।
https://cprogrammingbookinhindi.com/c-variables-in-hindi/

👉 Related: C Data Types in Hindi

Operators की working data type पर depend करती है।

👉 Related: Loops in C in Hindi

Operators loops की conditions में बहुत उपयोग होते हैं।
https://cprogrammingbookinhindi.com/loops-in-c-in-hindi/


❓ FAQs (Rank Math Me “FAQ Schema” भी लगेगा)

Q1. C में total कितने operators हैं?

6 main categories और 30+ operators।

Q2. सबसे ज्यादा कौन सा operator use होता है?

Arithmetic और Logical operators।

Q3. Bitwise operators का use कहाँ होता है?

Low-level programming, device control, embedded systems।

Q4. == और = में क्या अंतर है?

  • = assignment operator
  • == comparison operator

⭐ Conclusion

C Operators programming की backbone हैं।
इनका इस्तेमाल calculations, comparisons, logical decisions, assignments, और bit-level कामों में किया जाता है।

इस article में हमने सभी operators को एक-एक कर examples, tables और diagrams के साथ समझा।

One thought on “C Operators in Hindi – Types, Examples और Complete Guide

Comments are closed.