作业帮 > 英语 > 作业

若已定义:int a[10],*pi,(*ps)[10];错误的是 A,pi=a,ps=pi; B,pi=a,ps=&a

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/10/06 00:55:39
若已定义:int a[10],*pi,(*ps)[10];错误的是 A,pi=a,ps=pi; B,pi=a,ps=&a,*(*ps)=10; C,ps=&a,
答案是A,
a value of type "int *" cannot be assigned to an entity of type "int (*)[10],
ps = pi 错误.
再问: B和C对吗?
再答: 至少编译没有错误。。