Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MEM31-C-EX1: Allocated memory does not need to be freed if it is assigned to a pointer with static storage duration whose lifetime is the entire execution of a programincludes program termination. The following code example illustrates a pointer that stores the return value from malloc() in a static variable:

...