大一新生学c语言,不懂,求大佬!!
#include<stdio .h>int main()
{
int x,y,temp;
printf("please input number x,y:") ;
scanf("%d,%d",&x ,&y);
temp=x;
x=y;
y=temp;
printf("x==%d,y==%d\n",x,y);
return 0;
}
为什么输入1,2
会这样?
please input number x, y:1, 2
x==-858993460, y==1
ress any key to cont inue