分析下列程序的输出结果,书中答案是x=0;y=5,求详细的解析过程!!!
main(){intx=0,y=0,i,j;for(i=0;i<=2;i++){for(j=0;j<3;j++)x++;x-=j;}printf("x=%d,y=%d";...
main()
{
int x=0,y=0,i,j;
for ( i = 0; i <=2; i++)
{
for ( j = 0; j < 3; j++)
x++;
x -= j;
}
printf("x=%d,y=%d"; x,y);
return 0;
} 展开
{
int x=0,y=0,i,j;
for ( i = 0; i <=2; i++)
{
for ( j = 0; j < 3; j++)
x++;
x -= j;
}
printf("x=%d,y=%d"; x,y);
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询