#include
int qsort(int left,int right)
{
int i,last;
if(left>=right)
return 0;
last=left;
printf("%d\n",last);
qsort(last+1,right);
}
int main()
{
int b=0,c=9;
qsort(b,c);
}输出为012345678
但是
#include
int qsort(int left,int right)
{
int i,last;
if(left>=right)
return 0;
last=left;
printf("%d\n",last);
qsort(last++,right);
}
int main()
{
int b=0,c=9;
qsort(b,c);
}
只是last+1变为last++为什么结果截然不同啊