Basic <-> C# | Automatic variable declaration

Basic

Dim =, Dim As =

Description

 Dim name = par2
 Dim name = init_value
 Dim name  As type = init_value
Used keywords: = as dim
Data:
  • name -

Input

Examples

.
C#

automatic variable declaration

Description

type name =init_value;
type name =init_value , name = init_value;
Used keywords: =
Data:
  • name -

Input

Examples

C#

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
Automatic variable declaration in another programming language:
Differences to:
Languages: en hu cz sk