[求助]请问这两个小程序为什么有这样的运行结果?
/* Note:Your choice is C IDE */
#include "stdio.h"
main()
{
int x=2;
while(x--);
printf("%d\n",x);
}
结果-1
/* Note:Your choice is C IDE */
#include "stdio.h"
main()
{
int k,n,m;
n=10;m=1;k=1;
while(k++<=n)
m*=2;
printf("%d\n",m);
}
结果1024