Automatic variable declaration: Dim =, Dim As =
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
Example
Automatic variable declaration the possible of use:xmin = -128; ymax = 127;
sbyte x= -5; // x = -5
sbyte y = -(15 % 4); // y = -3
y = (sbyte)(x * y); // z = 15
Example
Other pieces of example codes:short y = -(1500 % 60);
int y = -(15123 div 70);
bool b2 = x && y;
double y = 123456789;
ulong y = 10250 div 8;
ushort y = 1025 % 8;
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:long y = -(15123 / 70);
unsigned char y = 15 % 4;
double y = 123456789;
short y = -(1500 % 60);
unsigned short y = 1025 % 8;
unsigned long y = 1025 / 8;
Dim =, Dim As =
Description
Dim name = par2
Dim name = init_value
Dim name As type = init_value
Data:
- name -
Input
- type - data types
- init_value - Expressions
Examples
Basic
Other pieces of example codes:Dim x As single= 3.14159265359
Dim x As long= -12345
Dim x As integer= -1234
Dim x As double= 3.14159265359
Automatic variable declaration in another programming language: