源码已经给你了,有没有测试执行一下看看是什么结果?
【第12题】t[3][2]的地址就是t,前面加&是不对的
for (k=0;k<3;k++) pt[k]=t[k]; 经过这个遍历后,t和pt的首地址相同,所以选B
验证如下:
#include <stdio.h>
int main()
{
int t[3][2],*pt[3],k;
for (k=0;k<3;k++) pt[k]=t[k];
printf("%d\n",pt[0]);
printf("%d\n",t);
}
【第18题】
两个字串首地址指针各增1
strcmp(s1,s2) 相当于比的是 "BCDEF" 和 "B",所以结果是正数