3 ms·
Well yes, but those aren't hard. Pointer arithmetic is merely knowing that any addition/subtraction done to a pointer is multiplied by the size of the type bei
by Sohcahtoa82 4y ago
Well yes, but those aren't hard.
Pointer arithmetic is merely knowing that any addition/subtraction done to a pointer is multiplied by the size of the type being pointed to. So if you're pointing to a 64-byte struct, then "ptr++;" adds 64 to the pointer.
- int_19h 4y agoTyped pointers interact with aliasing in "interesting" ways.