DEV Community

Oromiddin
Oromiddin

Posted on

1 1 1 1 1

Variables -> O'zgaruvchilar

                integer[int]:
Enter fullscreen mode Exit fullscreen mode

Butun sonlar uchun qollaniladi.

                        long:
Enter fullscreen mode Exit fullscreen mode

Butun sonlar uchun qollaniladi , va hotirani kuchaytirib beradi.

                       short:
Enter fullscreen mode Exit fullscreen mode

Butun sonlar uchun qollaniladi.

                      double:
Enter fullscreen mode Exit fullscreen mode

Kasr sonlar uchun qollaniladi.

                       float:
Enter fullscreen mode Exit fullscreen mode

Kasr sonlar uchun ishlatiladi.

                      string:
Enter fullscreen mode Exit fullscreen mode

Matn va tekstlar uchun qollaniladi.
char:
Belgilar uchun qollaniladi.

                  Data types:
Enter fullscreen mode Exit fullscreen mode

int = 4 bytes.
float = 4 bytes.
double = 8 bytes.
string = 32 bytes.
char = 1 byte.

                    Examples:
Enter fullscreen mode Exit fullscreen mode

int son;// Declaration [ozgarvuchini elon qilish]
son = 10;// Assigment [ozgaruvchiga qiymat berish]
int raqam = 10; // Intialization
[E'lon qilib qiymat berish]
int a, b, c, d; // Bir hil tip da bolgan bir nechta ozgaruvchi elon qilish mumkin.

                      Errors:
Enter fullscreen mode Exit fullscreen mode

int raqam = 10;
int raqam = 15;
Bir hil ozgaruvchini nomini qayta ishlatish mumkin emas.

float KasrSon=12.3;int num=10; Bir qatorda xar xil ozgarvuchilarni elon qilish mumkinmas.

int Simple Num; ozgaruvchi nomini ortasida space qoyish mumkin emas.
int #qwerty; maxsus belgilardan foydalanish mumkin emas.
int 1num; birinchi belgi raqam bolish mumkin emas.
int while; kalit sozlarni ishlatish mumkin emas.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (1)

Collapse
 
sunnat_qayumov profile image
Sunnat Qayumov

yorvoribsiz

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more