Versions Compared

Key

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

...

Code Block
int * const dat = (int * const) malloc(ARRAY_SIZE * sizeof(int));
/* ... */
free(dat);
dat = NULL; 

The dis identifier cannot be incremented, so the expression dis++ results in a fatal compilation error. Both arrays can be initialized as follows:

...