求助,一个for循环没搞懂
											#include<stdio.h>int main()
{
int x,y=0;
for(x=0;x++<=2;);
y+=x;
printf("%d %d\n",x,y);
return 0;
}
为啥for循环中x与2判断结束都得执行a=a+1
 2015-02-12 15:22
	    2015-02-12 15:22
   程序代码:
程序代码:#include<stdio.h>
int main(void) {
    int x, y = 0;
    for(x = 0; x++ < 3;) {
        y += x;
        printf("%d %d\n", x, y);
    }
    return 0;
}
										
					
	
 2015-02-12 15:32
	    2015-02-12 15:32
   2015-02-12 15:33
	    2015-02-12 15:33
   2015-02-12 15:41
	    2015-02-12 15:41
   2015-02-12 17:28
	    2015-02-12 17:28
   2015-03-28 23:20
	    2015-03-28 23:20
   2015-03-28 23:26
	    2015-03-28 23:26
   2015-03-29 10:58
	    2015-03-29 10:58