Showing posts with label C Operators. Show all posts
Showing posts with label C Operators. Show all posts

Saturday, October 24, 2026

Operators in C Language in Telugu - All Types with Examples Part-4

Operators in C Language | All Operators in Telugu

Part-4: C lo Lekkalu ela cheyali? - LearnTechSoft

1. Operator ante enti?

Operator = Maths lo + - * / lanti symbols. C lo 2 values ni kalapadaniki, polchadaniki operators vadatam.

a + b - Ikkada + anedi Operator, a,b anedi Operands

2. 5 Types of Operators

Type 1: Arithmetic Operators - Lekkala kosam
OperatorMeaningExample (a=10,b=3)
+Additiona+b = 13
-Subtractiona-b = 7
*Multiplya*b = 30
/Divisiona/b = 3
%Modulus (Remainder)a%b = 1
Type 2: Relational Operators - Polchadam kosam (True/False istai)
==Equal toa==b ? False
!=Not Equala!=b ? True
>Greater thana>b ? True
<Less thana<b ? False
Type 3: Logical Operators - Conditions kalapadaniki
  • && (AND) - Rendu True ayite True
  • || (OR) - Okati True ayina True
  • ! (NOT) - True ni False chestundi

3. Full Program - Calculator

#include <stdio.h>
int main() {
    int a=20, b=10;
    printf("Add: %d\n", a+b);
    printf("Sub: %d\n", a-b);
    printf("Mul: %d\n", a*b);
    printf("Div: %d\n", a/b);
    printf("Rem: %d\n", a%b);
    printf("Is a>b? %d\n", a>b); // 1=True, 0=False
    return 0;
}
Output:
Add: 30, Sub: 10, Mul: 200, Div: 2, Rem: 0, Is a>b? 1

4. Increment / Decrement - Interview lo adugutaru!

a++
Post Increment
First use, then add
++a
Pre Increment
First add, then use

🎯 Next Post: If-Else Condition in C - Decision Making

Operators practice cheyandi - Roju 10 programs rayandi!

Abstraction in Java - Explained in Simple Words with Examples in Telugu | LearnTechSoft Abstraction in Java - Explained in Simpl...