#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<stdlib.h>
void swap(int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
}
int main()
{
int a, b;
scanf("%d%d", &a, &b);
swap(&a, &b);
printf("%d %d", a, b);
system("pause");
return 0;
}
![360反馈意见截图16600904243508.png wKioL1YjR02ACi-aAABnQTxTcTw947.jpg](https://i-blog.csdnimg.cn/blog_migrate/eebb0daab953e9cea4f65781fbff2159.jpeg)
转载于:https://blog.51cto.com/iynu17/1703977