Give the syntax of initializing a variable.
Answers
Answered by
1
Answer:
Here is the syntax of the variable initialization data_type variable_name=value;
Integer variable initialization. int number=10;
Float variable initialization. float value=23.45f;
Character variable initialization. char gender = 'M';
Character array/ string initialization. ...
Integer array initialization
Answered by
1
Here is the syntax of the variable initialization data_type variable_name=value;
Integer variable initialization. int number=10;
Float variable initialization. float value=23.45f;
Character variable initialization. char gender = 'M';
Character array/ string initialization. ...
Integer array initialization.☺
Similar questions