Two Dimensional Array Implementation Using Double Pointer

前端 未结 5 983
生来不讨喜
生来不讨喜 2020-12-07 17:14

Please consider the following code:

#include 
#include 

#define NUM_ARRAYS     4
#define NUM_ELEMENTS   4
#define INVALID_VAL         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 17:43

    Unless you mistypes, (*ptr + 1) is equivalent to *(ptr + 0) + 1 which is a pointer to the second element in the first block.

提交回复
热议问题