Variables and Their types(C++)

umid2008

Umid2008

Posted on March 3, 2023

Variables and Their types(C++)

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

It's types of Variables

💖 💪 🙅 🚩
umid2008
Umid2008

Posted on March 3, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related