Computer Science, asked by jenny5432, 8 months ago

What do you mean by initialization of a variable? Explain with the help of a suitable example ​

Answers

Answered by shashirenusagar
10

Explanation:

Initializing a variable means specifying an initial value to assign to it (i.e., before it is used at all). Notice that a variable that is not initialized does not have a defined value, hence it cannot be used until it is assigned such a value.

Example-

if static variables are declared without an initializer, then those of primitive data types are initialized with the value of zero of the corresponding type, while static objects of class type are initialized with their default constructors.

hope it helps..✌

Mark it as brainliest..

Answered by stgsaribaali117419
0

Answer:

huiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiibuiiiiiii

Similar questions