讲解的第六点举的例子结果不对啊??
#include<stdio.h>
int main()
{
int sum,num;
for(sum=0,num=0;num<=3;num++,sum++)
{
sum+=num;
printf("num=%d,sum=%d\n",num,sum);
return 0;
}
}
结果是num=0,sum=0,就这一行字,谁能解释下????
#include<stdio.h>
int main()
{
int sum,num;
for(sum=0,num=0;num<=3;num++,sum++)
{
sum+=num;
printf("num=%d,sum=%d\n",num,sum);
return 0;
}
}
结果是num=0,sum=0,就这一行字,谁能解释下????
2015-09-30
举报