This content originally appeared on DEV Community and was authored by umida5
Rules
int son; Declaration - e'lon qilish
son = 11; Assignment - qiymat o'zgartirish
int raqam = 15; Intialization - e'lon qilib srazu qiymat berish
int a,b,c,d,e; Bir xil tipdagi o'zgaruvchilarni 1 qatorda e'lon qilish mumkin emas.
int raqam = 5; O'zgaruvchiga 1 xil nom berish mumkin emas.
float harorat, int x = 1; 1 qatorda 1 nechta o'zgaruvchi ishlatib bo'lmaydi
Nomlash qoidalari
1.Nomda alifbo harflari,raqamlar va undercore ishlatish mumkin
2.Nomning 1 chi belgisi raqam bo'la olmaydi
3.Nomda maxsus belgilar bo'lishi mumkin emas
4.Maxsus kalit so'zlardan nom sifatida foylalana olmaymiz
Casting rules
Katta harf va kichik harf b-n ishlash
Local o'zgaruvchilar cameLcase orqali yoziladi.
Propertylar,metod nomlari,class nomlari PascalCase orqali
yoziladi.
Constant qiymatga ega o'zgaruchilar UPPERCASE orqali yoziladi.
This content originally appeared on DEV Community and was authored by umida5
umida5 | Sciencx (2024-08-07T17:41:58+00:00) Variables. Retrieved from https://www.scien.cx/2024/08/07/variables-4/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.