ECS 36B Lecture 5: Pointers in C
ECS 36B verified notes
5/26View all
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 .