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