Tips and Pitfalls

Dynamic Memory Allocation

In order to use dynamic memory pointers properly, you must declare at least one pointer variable in the appropriate procedures. This will generate the code defining a common block with declarations for all of the Mem arrays: Memd, Memr, Memi, Mems, etc. Otherwise, you will get a compiler error complaining of undeclared variables.

Generated with CERN WebMaker