DEV Community

Cover image for Variables.
Sabrina
Sabrina

Posted on

4 3 4 3 3

Variables.

Variables

//int son; //Declaration - e'lon qilish
//son = 11; //Assigment - qiyamt o'zgartirish

//int raqam = 15; //intialization - e'lon qilib srzu qiymat berish

//int a,b,c,d,e; //Bir xil tipdagi o'zgaruvchilarni 1 qatorda e'lon qilish mumkin emas.

//int raqam = 5; //ERROR:O'zgaruvchiga 1 xil nom berish mumkin emas

//float harorat, int x = 1; //ERROR: 1 qatorda 1 nechta o'zgaruvchi ishlatb 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, PascalCse orqali yoziladi.
//Constant qiymatga ega o'zgaruchilar UPPERCASE orqali yoziladi.

//int katta son = 122467;
//const float PI = 3.14;

//public class Student
//{
// public string FullName {get; set;};
//}

Enter fullscreen mode Exit fullscreen mode
// scope - hudud qoidalari 

//if(true)
//{
//   int y = 20;
//}

Enter fullscreen mode Exit fullscreen mode
//void PrintHello
//{
//  int x = 15;
//  Console.Writeline(x);
//}
//Console.Writeline(raqam);

Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up