So Variables like a empty bottle, container, mug and etc. Variable means - temporarily saving. And we can can fill that "empty bottle" with different things. For example with texts, numbers and etc. Temporary storage locations are called variables.
!!Many programs allow the method of temporary storage of data at the time of execution of the program need!!
Variables has a name of the variable and value. Before using any variable, it must be declared with code "cin". In the process of software operation, it is possible to change the value of the variable. The variable is addressed to the part of memory that stores the value through it's name.
int = integer = Butun sonlar -- 4bytes
long int = (int dan 2 baravar ko'p);
float = kasr son; -- 4bytes
double = kasr son(float dan 2 baravar ko'p)
string = tekst; -- 4bytes
char = character = belgi; -- 1byte;
bool = bolean = true/false;
It's types of Variables
Top comments (0)