Give the syntax to initializing a variable.
Answers
Answered by
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
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