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