why unassigned data types return some number & not 0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why unassigned data types return some number & not 0?

26th Oct 2017, 5:05 PM
shobhit
shobhit - avatar
1 Answer
+ 9
Because your computer do not initialize the memory to 0, it leaves it in the same state it was before running your program (which is often junk values)
26th Oct 2017, 5:06 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar