#include <stdio.h>
void ft_swap(int *a, int *b)
{
int c;
c = *a;
*a = *b;
*b = c;
}
int main(void)
{
int x = 5;
int y = 10;
printf("Before swap: x = %d, y = %d\n", x, y);
ft_swap(&x, &y);
printf("After swap: x = %d, y = %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: