一.两整数交换值
#include "stdio.h"
mmi_charge(int *n,int *m)
{
int temp;
temp = *n;
*n = *m;
*m = temp;
}
void main()
{
int a = 10;
int b = 12;
mmi_charge(&a,&b);
}
一.两整数交换值
#include "stdio.h"
mmi_charge(int *n,int *m)
{
int temp;
temp = *n;
*n = *m;
*m = temp;
}
void main()
{
int a = 10;
int b = 12;
mmi_charge(&a,&b);
}