ITI 1120 Chapter Notes - Chapter 10: Memory Address

66 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents