问题 单项选择题

设int a [4];int *p=a,则sizeof (p)和sizeof (a)的值分别是______ 。

A.4和4

B.16和4

C.16和16

D.4和16

答案

参考答案:D

解析: a为数组,所以sizeof (a)为16。

单项选择题
单项选择题