+ 8
In c++ if no value is assigned to a variable then the variable consists of any random value.. And that value is called garbage value..
Accept in case of static and global variables..
+ 3
Garbage Value: Garbage value is a waste or unused values which are available in memory during declaration of variables. Garbage value is a waste materials of previous programs which is used by someone else.
http://programmersbhawa.com/garbage-value-c-produces/
+ 3
In C or C++ if values are not initialized they take what is stored in memory before they construction
That's an undefined behaviour so anything can happen
An int can store a clown if the computer want to..
+ 1
what is global variable not understant which used
- 5
cake