What is the difference between the first address of the array and the address of the first element of the array in C language

The relationship between the first address of the array and the address of the first element of the array in C language is as follows:

1. Their address values ​​are equal.

2. If the address of the first element is p, then p+1 is the address of the second element.

3. If the first address of the array is p, then p+1 skips this array and points to the next byte of the last byte of the last element of this array.

Reference: https://zhidao.baidu.com/question/581103677.html

Guess you like

Origin blog.csdn.net/eidolon_foot/article/details/111225063