+ 8
Why the output is 8,33
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.
+ 7
regVar isn't initialized, 8 is a garbage value
+ 7
Anna
Garbage value ?
Meaning??
+ 7
Ok
Got it
Thanks to all of you
+ 2
Replace regVar by a .... 😐 That does it !