๐ป Day 83: Operators in C Language – Hinglish
๐ป Operators in C Language –
๐ Aaj hum seekhenge:
✅ Operator kya hota hai
✅ Types of operators
✅ Examples
(Programming ka very important topic) ๐ฏ
๐ Operator kya hota hai?
๐ Operator = Jo operations (calculation / comparison) karne me help kare.
➡️ Simple words me:
Operator = Kaam karne wale symbols.
๐ง Example:
a + b
๐ + = Operator
๐งฉ Types of Operators in C
1️⃣ Arithmetic Operators (Math Operators)
๐ Calculation ke liye.
| Operator | Meaning | Example |
|---|---|---|
| + | Addition | a + b |
| - | Subtraction | a - b |
| * | Multiplication | a * b |
| / | Division | a / b |
| % | Modulus (Remainder) | a % b |
2️⃣ Relational Operators (Comparison)
๐ Comparison ke liye.
| Operator | Meaning | Example |
|---|---|---|
| > | Greater than | a > b |
| < | Less than | a < b |
| >= | Greater than or equal | a >= b |
| <= | Less than or equal | a <= b |
| == | Equal to | a == b |
| != | Not equal | a != b |
3️⃣ Logical Operators
๐ Conditions ke liye.
| Operator | Meaning | Example |
|---|---|---|
| && | AND | a>5 && b<10 |
| ! | NOT | !(a>5) |
4️⃣ Assignment Operators
๐ Value assign karne ke liye.
| Operator | Example |
|---|---|
| = | a = 10 |
| += | a += 5 |
| -= | a -= 5 |
| *= | a *= 5 |
| /= | a /= 5 |
5️⃣ Increment / Decrement Operators
๐ Value increase/decrease karne ke liye.
| Operator | Meaning | Example |
|---|---|---|
| ++ | Increase by 1 | a++ |
| -- | Decrease by 1 | a-- |
๐งช Practice Questions
✅ Theory:
Operator kya hota hai?
Arithmetic operators ke naam likho.
Logical operators explain karo.
✅ Practical:
๐ Example likho:
int a = 10, b = 5;
printf("%d", a + b);
๐ Short Notes (Exam ke liye)
๐ Operator = Symbols for operations
๐ Arithmetic = +, -, *, /, %