20th May 2019, 6:20 PM
//(AnOnYmOuS);
6 Respuestas
+ 9
The code stores values of all variables in some memory locations. The initial value present in those memory locations get assigned to those variables when they are created. These initial values are called "garbage values". As Anna mentioned, the variable values you are outputting have not been assigned a value in your code so they use the initial garbage values instead.
20th May 2019, 8:22 PM
Kainatic [Mostly Inactive Now]
Kainatic [Mostly Inactive Now] - avatar
+ 7
regVar isn't initialized, 8 is a garbage value
20th May 2019, 6:29 PM
Anna
Anna - avatar
+ 7
Anna Garbage value ? Meaning??
20th May 2019, 6:44 PM
//(AnOnYmOuS);
+ 7
Ok Got it Thanks to all of you
21st May 2019, 1:12 AM
//(AnOnYmOuS);
+ 2
Replace regVar by a .... 😐 That does it !
22nd May 2019, 4:39 AM
Sanjay Kamath
Sanjay Kamath - avatar