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:
**
- Nomda alifbo harflari, ragamlar va underscore(_ ishlatish mumkin.
- Nomning birnchi belgisi ragam bo' la olmaydi.
- Nomda maxsus belgilar bo' lishi mumkin emas
- Maxsus kalit so'zlardan nom sifatida foydalanish mumkin emas.
This content originally appeared on DEV Community and was authored by asilbek ibragimov
asilbek ibragimov | Sciencx (2024-08-07T20:28:54+00:00) Variables. Retrieved from 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.