ခေါင်းစဉ် 54 / 63
5 မိနစ်
Operators(Part -1)
Operators
Program တစ်ခုမှာ Number တွေ ပေါင်းခြင်း၊ နုတ်ခြင်း၊ Value အသစ်သတ်မှတ်ခြင်း၊ တန်ဖိုးနှစ်ခု နှိုင်းယှဉ်ခြင်းနဲ့ အခြေအနေများ ပေါင်းစပ်စစ်ဆေးခြင်းတို့ကို ပြုလုပ်ဖို့ လိုအပ်ပါတယ်။
ဒီလို Data တွေပေါ်မှာ တွက်ချက်ခြင်း သို့မဟုတ် စစ်ဆေးခြင်းပြုလုပ်ဖို့ အသုံးပြုတဲ့ Symbol များကို Operators လို့ ခေါ်ပါတယ်။
ဥပမာ—
int result = 10 + 5;
ဒီ Code မှာ—
-
10နဲ့5ကို Operands လို့ ခေါ်ပါတယ်။ -
+ကို Operator လို့ ခေါ်ပါတယ်။ -
10 + 5ရဲ့ Result က15ဖြစ်ပါတယ်။
10 + 5 Operand Operator Operand
သင်ခန်းစာရည်ရွယ်ချက်
ဒီသင်ခန်းစာပြီးဆုံးတဲ့အခါ—
- Operator ဆိုတာဘာလဲ နားလည်မယ်။
- Arithmetic Operators နဲ့ တွက်ချက်နိုင်မယ်။
- Assignment Operators နဲ့ Variable Value ပြောင်းနိုင်မယ်။
- Increment နဲ့ Decrement Operators အသုံးပြုနိုင်မယ်။
- Comparison Operators နဲ့ Value နှိုင်းယှဉ်နိုင်မယ်။
- Logical Operators နဲ့ Condition များ ပေါင်းစပ်နိုင်မယ်။
- Ternary Operator နဲ့ ရိုးရှင်းတဲ့ Condition ရေးနိုင်မယ်။
- Operator Precedence နဲ့ Parentheses ရဲ့ အရေးပါမှုကို နားလည်မယ်။
Progress သိမ်းလိုပါက Login ဝင်ပါ။ Login မဝင်ဘဲလည်း ခေါင်းစဉ်အားလုံးကို လေ့လာနိုင်ပါသည်။