ECS 36B Lecture 5: Pointers in C

74 views4 pages
Verified Note

Document Summary

John owns a house that takes up one plot at address 0 and stores a 5. Chris owns a house that takes up one plot at address 1 and stores a 4. Amy owns a house that takes up four plots at address 2 and stores fast . Address is denoted by the starting point of memory that object occupies. In c"s notation, the landlords represent variable names , the land represents the value of what"s stored in the variable and the addr is the variable"s address (where in memory it is located) & asks for and locates the address of the variable it proceeds. Ecs 36b - lecture 5 - pointers in c. What is a pointer : a variable in c that stores, or points to, the address of another variable. Understanding the address of a variable with an analogy: Consider a large lot of empty land on a street called memory lane .

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