Computer Science, asked by ak9701849, 1 year ago

What is initialization? Explain with an example.

Answers

Answered by arusha8683
2
Initialization is the process of locating and using the definedvalues for variable data that is used by a computer program. Forexample, an operating system or application program is installed with default or user-specified values that determine certain aspects of how the system or program is to function.


hope this helps you

ak9701849: Thanks arusha ji
Answered by garywalter1221
0

dekh bhai initialization ka mtlb jb hm kisi variable ko koi value provide krte hai usi ko hm initilization kehte hai.

for example;

int a;

agar maine (int a;) liya hai tb iska mtlb hoga ki maine isko koi value provide nhi ki hai tb isme ek alag hi value hoti jo OS ki hoti hai is value ka name GARBAGE value hota hai yeh value hr barr change hoti  hai yeh fix nhi hoti hai.


2nd.

example

int a=2;

ab maine (int a=2) liya hai iska mtlb maine isme ek value provide ki hai hai pehle yeh tha ki jb maine sirf (int a) liya tha tb yha pr ek random value thi pr ab kya hoga ab yha pr random value nhi hogi ab yha pr (int a=2) means jb hm (a) ko print karaenge tb yha pr a=2 print hoga.

Yhi hai initialization

hope this will help u

Similar questions