CS 233 Midterm: Pointers
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.