我按照老师的代码写,结果怎么不对??
#include "stdio.h"
void change(int *a,int *b)
{
int temp;
temp=*a;
*a=*b;
*b=temp;
}
int main()
{
int a=5;
int b=1;
change(&a,&b);
printf("numa=%d,numb=%d",change);
}
---------------------------------------------------结果为
numa=4198435
numb=4198800
Press any key to continue