DEV Community

asilbek ibragimov
asilbek ibragimov

Posted on

3 2 2 2 3

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 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:
Enter fullscreen mode Exit fullscreen mode

**

  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.

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay