CPSC 259 Chapter Notes - Chapter 7.3: In C

70 views2 pages

Document Summary

Making memory diagrams, which use boxes to indicate variables and arrows for pointers, are excellent ways of showing how memory is used during run time and allows you to work quickly with coding. When two pointers refer to a common pointee, which happens when you use the operator =" then the pointers are said to be sharing the pointee. So it is two or more entities like pointers, sharing a common memory structure. This is the key advantage of using pointers as these allows you to save space, as you donot have to replicate the data structure for each different entity that you use. Sharing is nice since it allows different functions to communicate with each other. So a function has a usable value or values. Instead of making copies of the data set, which can be large and consume a lot of memory, the function just sends a pointer to the function and then both can reference it.

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

Related Questions