Considering the following code, is it safe to do pointer arithmetic on nullptr?
nullptr
I assume adding any offsets to a nullptr results in another
No, adding an offset to a nullptr does not result in a nullptr. This is undefined behavior.