指向数组的指针(Pointer to an array).docVIP

  • 54
  • 0
  • 约8.53千字
  • 约 11页
  • 2017-07-20 发布于河南
  • 举报
指向数组的指针(Pointer to an array)

指向数组的指针(Pointer to an array) If I have a definition int (* p) [3]; A pointer variable called p is defined, indicating that p is a pointer variable, which can point to a two-dimensional array of three integers (int) elements in each row. P is a pointer to a one-dimensional array. So this is the first thing to understand that (* p) [3] is a pointer variable that points to a one-dimensional array, which means that the pointer is to a pointer to an array that contains three elements, So each time you add 1 to the p pointer, you add 6 to the address in the p, and you have 2 bytes in int, 4 bytes in

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档