<分区>
我们刚刚开始复习我的 C/C++ 类中的指针,但我对它们的工作方式有点困惑。我遇到了这个问题:
Assume you have declared a multi-dimensional array char ma[5][30]. What is the address of the element "ma[0][0]"? Use two (2) different ways to assign the address to a pointer variable, p. (Do not give a concrete address for ma[0][0] - this will vary each time the program is run, based on the memory allocated.)
我知道这个社区对提供家庭作业问题的“答案”有多不满。我不需要答案,但希望有人能向我解释如何使用指针获取数组中元素的地址?