Originally Posted by
begginer
somebody might be able to correct me if i am wrong but here is a basic understanding of it
computer memory is cmos technology( which is a type of transistor) which we could get into a whole debate about cmos technology but that is not the point of this topic
computer memory gets saved in stacks...as i am sure you teach has explained or drew the picture. so each variable gets saved into a specific memory location, and enless you make that variable static or pass by reference it will take what is previous in that memory location delete it
so if you had a variable called test and set that equal to zero so the code would be...
the variable test is being saved into a spacific memory location, and lets say for the the conversation it is saved in memory location oxo1(hex 1) or ooo1 in binary so if you had a pointer in your code say *test it would point directly to that memory location(oxo1) and you could read the value of what it( for our case it is zero, or the aski equivalent of zero) otherwise you would have a bunch of garbage in that memory location