C++ - Automatic variable declaration
Variable declaration is used for its creation.automatic variable declaration
Description
type name =init_value;
type name =init_value , name = init_value;
Data:
- name -
Input
- type - data types
- init_value - Expressions
Examples
C++
Automatic variable declaration the possible of use:xmin = -128; ymax = 127;
signed char x= -5; // x = -5
signed char y = -(15 % 4); // y = -3
y = (signed char)(x * y); // z = 15
C++
Other pieces of example codes:unsigned long x=70000;
unsigned long long x=7001234;
bool b2 = x && y;
unsigned short x=280;
long x= -12345;
long long x= -82345;
Automatic variable declaration in another programming language:
Differences to: