148. Pointer should be initialized to null() to avoid undefined association status.#

topic: Pointers

Note

This tip is a draft1.

Whether a pointer is initially ASSOCIATED is undefined, unless the pointer is initialized to null(), which makes it not associated. This is recommended. A pointer becomes associated by being allocated or by being given a target.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.