Reintialization

i have doubt in intializing , declaring and reitializing
like how int c and c got different value ?

Hey @himanshushekhar1611_dcf1ac1eafc91986 To keep your concepts clear let us think of ‘c’ as a box.
i) You need to name that box and we do this by :
int c;
(Initialize)
by this line we have the box name as ‘c’.
ii) Now we need to put something in the box.
c = 10;
by this line, we have put 10 in the box c.
iii) Now for example you want to change the item in box c from 10 to 20. SO THINK DO YOU NEED TO CHANGE THE NAME OF BOX AGAIN ??? NO??? THEN WE ONLY NEED TO CHANGE ITEM IN IT by this line :
c = 20;
(Reinitialize)
Now code which is written in step 1 and 2 CAN BE COLLECTIVELY WRITTEN AS :
int c = 10;
then second line of code :
c = 20;

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

thankyou sir…doubt solved