Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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..
15th Jan 2019, 2:14 AM
Rohit
Rohit - avatar
+ 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/
14th Jan 2019, 10:27 AM
deepak sharma
deepak sharma - avatar
+ 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..
21st Jan 2019, 10:42 PM
Abel Louis
Abel Louis - avatar
+ 1
what is global variable not understant which used
16th Feb 2019, 5:20 PM
Tanha
Tanha - avatar
- 5
cake
16th Jan 2019, 5:53 PM
дэнчик крут д
дэнчик крут д - avatar