Why is AD option a[2] converted to an action pointer instead of its address, and if it is a[2][1], also converted to a pointer type?

dyp_0511 注册会员
2023-02-25 03:06

a[2][1] is the value, a[2]+1 is the address of a[2][1]
Because a is a two-dimensional array, the first dimension represents the number of rows, a[2] represents the second row, is the row pointer, Pointer +3 is the pointer offset, and the offset result is still pointer. a[2] is the pointer in the second row, and +3 is the address of three pointer type variables from the first address in the second row to the right, so it is the address of the third element in the second row


About the Author

Question Info

Publish Time
2023-02-25 03:06
Update Time
2023-02-25 03:06

Related Question


C语言问题[Error] invalid operands to binary + (have 'float' and 'struct Student')

Discord js删除消息后2秒


关于#NameError: name 'x is not defined#的问题,如何解决?


如何在Linux(Centos 7) shell上正确地在后台运行Spring引导批处理应用程序?

cannot coerce class ‘"membership"’ to a data.frame

centOS安装Oracle 19时安装画面白屏