Please consider the following code:
#include #include #define NUM_ARRAYS 4 #define NUM_ELEMENTS 4 #define INVALID_VAL
Unless you mistypes, (*ptr + 1) is equivalent to *(ptr + 0) + 1 which is a pointer to the second element in the first block.
(*ptr + 1)
*(ptr + 0) + 1