Operators

Salom bugun sizlar bilan Operatorslar haqida gaplashamiz .
Hozir sizlar bilan operatorslar nimaga kerak qanday holatlarda ishlatiladi va shu kabi savollarimizga javob topamiz .

Va yana ….

syntaksis
chiqarish operatori
yangi qator
o’zgaruvchil…


This content originally appeared on DEV Community and was authored by Shoxjaxon2008

Salom bugun sizlar bilan Operatorslar haqida gaplashamiz .
Hozir sizlar bilan operatorslar nimaga kerak qanday holatlarda ishlatiladi va shu kabi savollarimizga javob topamiz .

Va yana ....

  1. syntaksis
  2. chiqarish operatori
  3. yangi qator
  4. o'zgaruvchilar
  5. identifikator
  6. konstanta
  7. ma'lumot turlari
  8. operators lar bilan tanishamiz .

1 . syntaksis - deb biz birinchi kirganimizda chiqadigan kutibxona va o'sha yerdagi narsalarga aytiladi .

2 . chiqarish operatori - bunga biz misol qilib biror bir narsani cout qilib chiarishni olishimiz mumkin .
shunga o'xshash narsalar kiradi .

3 . yangi qator - kiritish bu \n yoki endl . \n bu faqat sonlar uchun . endl esa barchasiga o'tadi . Shuning uchun biz ko'd yozayotganimizda endl dan foydalanganimiz yaxshiroq .

4 . o'zgaruvchilar - bu dehqoncha qilib aytganda pustoy tarelka .
uni tipini va ichidagi narsani biz o'zimiz kiritamiz .

5 . identifikator - bu biz o'sha yaratgan o'zgaruvchilarimizga to'g'ri nom berish . Masalan biz o'zgaruvchilarga son kiritayotgan bo'lsak uni son deb yoki number / qisqacha num deb qilishimiz kerak bo'ladi shunda o'zimizni ham o'qiyotgan inson ni ham tushunishi onson bo'ladi .

6 . konstanta - bu - const - bu o'zgarmas hisoblanadi . c ++ da dasturlash tilida o'zgarmaslarni e'lon qilish so'zidan foydalansak bo'ladi . KOnstanta faqat qiymatni (olish) o'qishi mumkin xolos .
U qisqacha const deb yoziladi . Uni o'zgaruvchini tipidan keyin yozishimiz kerak bo'ladi . Agar shunday qilsak biz const qilgan qismni o'qiydi . Uni qiymatini o'zgartirmaydi .

7 . Ma 'lumot turlari - ya'ni data type bu haqida ham oldingi maqolalarda yozib o'tganman lekin aytib o'tgaman . Bular ga int , string , float , char va boshqalar kiradi . asosiysi shular .

8 . operators - operatorlar
Arifmetik operatorlar
Tayinlash operatorlari
Taqqoslash operatorlari
Mantiqiy operatorlar
Bitwise operatorlar
xillari bor .

O'zi biz operatorlarni o'zgaruvchilar va qiymatlar bilan ishlashda foydalanamiz .
operatorlar ga + - ++ -- / % < > va boshqalar kiradi .

Bulardan biz sonlarni bir - biriga tepadigi amallar bilan qilishda foydalanamiz . Bular deganda kasr son va boshqalar ham kiradi .

Tepada aytilgan operatorlardan biz tayinlash va taqqoslash operator larini o'tganmiz .

Tayinlash operator lari bu -
x += 5 ; x = x + 5 ;
x -= 5 ; x = x - 5 ;
x *= 5 ; x = x * 5 ;
x /= 5 ; x = x / 5 ;
x %= 5 ; x = x % 5 ;
ya 'ni ularga qiymat berish kiradi .

Taqqoslash operatorlari esa true va folse dan iborat .
to'g'ri bo'lsa 1 , xato bo'lsa 0 chiqarib beradi .

Bugun men tushuntirgan operators va boshqa ma'lumotlarni tushundingiz deb o'ylayman keyingi maqolalarimgacha see you goodbye . Men yozgan barcha narsani o'qidingiz deb o'ylayman .


This content originally appeared on DEV Community and was authored by Shoxjaxon2008


Print Share Comment Cite Upload Translate Updates
APA

Shoxjaxon2008 | Sciencx (2023-03-09T14:49:32+00:00) Operators. Retrieved from https://www.scien.cx/2023/03/09/operators/

MLA
" » Operators." Shoxjaxon2008 | Sciencx - Thursday March 9, 2023, https://www.scien.cx/2023/03/09/operators/
HARVARD
Shoxjaxon2008 | Sciencx Thursday March 9, 2023 » Operators., viewed ,<https://www.scien.cx/2023/03/09/operators/>
VANCOUVER
Shoxjaxon2008 | Sciencx - » Operators. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/03/09/operators/
CHICAGO
" » Operators." Shoxjaxon2008 | Sciencx - Accessed . https://www.scien.cx/2023/03/09/operators/
IEEE
" » Operators." Shoxjaxon2008 | Sciencx [Online]. Available: https://www.scien.cx/2023/03/09/operators/. [Accessed: ]
rf:citation
» Operators | Shoxjaxon2008 | Sciencx | https://www.scien.cx/2023/03/09/operators/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.