Variables

int son; | Declaration – e’ lon qilish
son = 11; | Assignment – qiymat o’zlashtirish

int raqam = 12; | initialization – e’lon qilib srazu qiymat berish

int a, b, f, do e, f; | bir xil tipdagi o’zgaruvchilarni bir qatorda e’ lon qilish mumkin

int ra…


This content originally appeared on DEV Community and was authored by asilbek ibragimov

int son; | Declaration - e' lon qilish
son = 11; | Assignment - qiymat o'zlashtirish

int raqam = 12; | initialization - e'lon qilib srazu qiymat berish

int a, b, f, do e, f; | bir xil tipdagi o'zgaruvchilarni bir qatorda e' lon qilish mumkin

int raqam = 15; | error: o'zgaruvchini nomi qayta ishlash mumkin emas

float harorat = 36.6, int x; | Error: bitta qatorda bir nechta xildagi o'zgaruvchini e'lon qilish mumkin emas

O'zgaruvchilar ichidagi xotiralari....!

int -> 4 byte.
float -> 4 byte.
double -> 8 byte.
string -> 32 byte.
char -> 1 byte.

**

Nomlash Qoidalari:

**

  1. Nomda alifbo harflari, ragamlar va underscore(_ ishlatish mumkin.
  2. Nomning birnchi belgisi ragam bo' la olmaydi.
  3. Nomda maxsus belgilar bo' lishi mumkin emas
  4. Maxsus kalit so'zlardan nom sifatida foydalanish mumkin emas.


This content originally appeared on DEV Community and was authored by asilbek ibragimov


Print Share Comment Cite Upload Translate Updates
APA

asilbek ibragimov | Sciencx (2024-08-07T20:28:54+00:00) Variables. Retrieved from https://www.scien.cx/2024/08/07/variables-5/

MLA
" » Variables." asilbek ibragimov | Sciencx - Wednesday August 7, 2024, https://www.scien.cx/2024/08/07/variables-5/
HARVARD
asilbek ibragimov | Sciencx Wednesday August 7, 2024 » Variables., viewed ,<https://www.scien.cx/2024/08/07/variables-5/>
VANCOUVER
asilbek ibragimov | Sciencx - » Variables. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/07/variables-5/
CHICAGO
" » Variables." asilbek ibragimov | Sciencx - Accessed . https://www.scien.cx/2024/08/07/variables-5/
IEEE
" » Variables." asilbek ibragimov | Sciencx [Online]. Available: https://www.scien.cx/2024/08/07/variables-5/. [Accessed: ]
rf:citation
» Variables | asilbek ibragimov | Sciencx | https://www.scien.cx/2024/08/07/variables-5/ |

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.