Variables

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 …


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


Print Share Comment Cite Upload Translate Updates
APA

umida5 | Sciencx (2024-08-07T17:41:58+00:00) Variables. Retrieved from https://www.scien.cx/2024/08/07/variables-4/

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

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