指针错题

若有下列定义,则对 a 数组元素地址的正确引用是()。

int a[5],*p=a;

正确答案: C   你的答案: A (错误)

*(p+5)
*p+2
*(a+2)
*&a[5]

AD.数组越界   B.*p的意思是取指针指向的内存单元里的元素的值+2  C.取

猜你喜欢

转载自blog.csdn.net/luoyir1997/article/details/81709996