#include<stdio.h> void swap(int a, int b) { int temp; temp = a; a = b; b = temp; printf("%d %d\n", a, b); } int main() { int a, b; a = 3; b = 10; swap(a, b); getchar(); return 0; }