ITI 1120 Chapter Notes - Chapter 10: Memory Address
Document Summary
Lecture 10 - memory model: a variable is assigned number - this has a address, at a location . What is stored in b is a memory address of the object: the way we draw is that we use a, there is a address that take you to a in the memory, C has its own address a= 100 b=100: even though its the same number, different addresses are places for a and b. >>true: it should be false , but small number is it says true, a = 10000000000, b = 10000000000, a == b, >> true, a is b, >>false. With function id, you can see the address of the variable: now for c, c = a, c==a. >>> a = 1000000000000 - create this object and store it in a. B now has another address for the value. C will have the same address as a.