"otherwise, you would be getting a segmentation fault." - using uninitialized pointer would lead to undefined behavior. Segmentation fault is only one of the possibilities but anything can happen, including the case when
World
will be printed as expected.