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;
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

C#

Other pieces of example codes:
float x = 3.14159265359;
byte x=5;
bool b = x;
double x = 3.14159265359;
short x= -1234;
int x= -12345;
automatic variable declaration in another programming language:
Differences to:
Languages: en hu cz sk