CS 233 Midterm: Pointers

95 views1 pages
4 Apr 2016
Course
Professor

Document Summary

Two pointers that point to the same thing hold the same address. Dereferencing a pointer means loading a string from the pointer"s address. A pointer has a type; the type tells us what kind of load to do. Use load single precision oating point (l. s) for oat * Pointer arithmetic is often used with pointers to arrays. Incrementing a pointer makes it point to the next element. The amount added to the point depends on the type of pointer pointer = pointer + sizeof(pointee"s type) 1 for char* 4 for int*, 4 for oat*, 8 for double* Structs are like arrays, but the elements can be di erent types.

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

Related Documents