程序改错题#includeint main(){ char a[10]={9,8,7,6,5,4,3,2,1,0},*p; *p=a+5; printf("%d\n",*--p);}
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 20:34:04
x){gSv2ʙy9)y%
y
E
цՖ:::f::&::F:::Z
Zڦ
E@iJ)1yJ:Zֵ6IE6`ց9;j0IP'@88FΆ7
6S YL2\FOvz6cӵӟYdǦgS7<ݢh_\ 11
程序改错题#includeint main(){ char a[10]={9,8,7,6,5,4,3,2,1,0},*p; *p=a+5; printf("%d\n",*--p);}
程序改错题
#include
int main()
{
char a[10]={9,8,7,6,5,4,3,2,1,0},*p;
*p=a+5;
printf("%d\n",*--p);
}
程序改错题#includeint main(){ char a[10]={9,8,7,6,5,4,3,2,1,0},*p; *p=a+5; printf("%d\n",*--p);}
1.P=P+5
2.printf("%d\n",*--p) 改成printf("%c\n",*--p),因为是字符串数组!