Computer Science, asked by rakshith469, 5 months ago

Give the syntax of initializing a variable.

Answers

Answered by poojatiwari8
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 Anonymous
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