DEV Community

Odiljonova
Odiljonova

Posted on

C++| Variables & Data Types

Asosiy tushunchalar

  • declaration
  • assignment
  • initializatoin

declaration bu o'zgaruvchilarni e'lon qilish
(qiymat kiritilmaydi)

assignment o'zgaruvchilarga qiymat berish

initialization bu declaration va initialization ning bir vaqtda bajarilishi. Ya'ni o'zgaruvcini e'lon qilish vaqtida unga qiymat berib ketadi.

o'zgaruvchi har doim chap tarafda turadi

a = b = c = d; amal o'ngdan chapga qarab amalga oshiriladi.

har bir o'zgaruvchi DATA TYPE ga ega bo'lishi kerak

DATA TYPES

integer types (butun sonlar)
-short
-long
-int

real number type (kasr sonlar)
-float
-double

character type (belgilar)
-char

Top comments (1)

Collapse
 
denim06111991 profile image
denim06111991

Can we get in touch to discuss more on a book that we are planning to update?