Computer Science, asked by rakeshs00000000, 20 days ago

Give the syntax to initializing a variable.​

Answers

Answered by likhitaryanp10
0

Variable initialization means assigning a value to the variable.

...

Point To remember.

Type Syntax

Variable declaration data_type variable_name; Example: int x, y, z; char flat, ch;

Variable initialization data_type variable_name = value; Example: int x = 50, y = 30; char flag = 'x', ch='l';

Answered by ankitarolisingh
2

Answer:

Variable initialization means assigning a value to the variable.

...

Point To remember.

Type Syntax

Variable declaration data_type variable_name; Example: int x, y, z; char flat, ch;

Variable initialization data_type variable_name = value; Example: int x = 50, y = 30; char flag = 'x', ch='l';

Similar questions