按视频打的代码错在哪里
#include<stdio.h>int main()
{
int b[] = {1,2,3,4};
int k;
int *pb = &b;
for (k = 0;k < 4;k++);
{
printf("%d\n",*(pb + k));
}
}
输出结果:2293296 for (k = 0;k < 4;k++);多了个分号 for (k = 0;k < 4;k++);改为 for (k = 0;k < 4;k++) 删除分号 多了个分号
页:
[1]