今天的学习内容在我上传的资源里面
我提供下链接供参考
http://download.csdn.net/download/lsy888520/10125339
相关代码
我提供下链接供参考
http://download.csdn.net/download/lsy888520/10125339
相关代码
2.C
#include <stdio.h>
void change(int *arg1, int *arg2)
{
int temp = *arg1;
*arg1 = *arg2;
*arg2 = temp;
}
int main()
{
int a = 5, b = 9;
change(&a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}
void change(int *arg1, int *arg2)
{
int temp = *arg1;
*arg1 = *arg2;
*arg2 = temp;
}
int main()
{
int a = 5, b = 9;
change(&a, &b);
printf("a = %d, b = %d\n", a, b);
return 0;
}
3.C