#include<stdio.h> int main() { int n, m, temp; scanf("%d %d", &m, &n); int* p1 = &n, *p2 = &m;//初始化两个int类型指针 temp = *p1; *p1 = *p2; *p2 = temp; printf("%d %d\n", m, n); return 0; }