[C/C++] Build an array of custom subscript ranges

According to the C/C++ language, the array subscript is 0 ~ n-1,
but we can customize the array subscript by means of pointers.
For example, the following code:

    int a[10];
    int *pa = a + 5;

At this time, the array pa is an array with subscripts ranging from -5 to 4

Guess you like

Origin blog.csdn.net/m0_43448982/article/details/96824440