4 ms·
I’m pretty sure you have to take the size of the objects in mind.
by tinus_hn 6y ago
I’m pretty sure you have to take the size of the objects in mind.
- throwaway525142 6y agoNo, these are equivalent. The size of the objects is implicitly taken into account by the compiler, it knows the size of the objects by the type of the pointer.
- amelius 6y ago"Pointer arithmetic" takes care of that. Adding an integer to a pointer will multiply the size of the type pointed to by the integer and adds that to the pointer.