#include <stdio.h> void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int main() { int x = 3, y = 5; swap(&x, &y); printf("%d %d\n", x, y); return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: