int a[3];
int *p = a;
存储在与p
关联的内存位置的值是多少?
找到的内存地址存储的值是多少?
它是否指向名称“a”
或数组第一个槽的地址
或 "a"
最佳答案
what is the value stored at the memory location associated with p is?
它存储a
第一个元素的地址。
What is the value stored at the memory address found?
不清楚你的意思。
does it point to the name "a" or the address of the first slot of the array or the value for the first element in "a"
p
是内存中某个位置的别名。该内存中的值是a
第一个元素的地址。它不指向名称a
。
关于c - C 编程的指针和数组(基础),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28269509/