void	ft_swap(int *a, int *b)
{
	int	c;

	c = *a;
	*a = *b;
	*b = c;
}
#include <stdio.h>
int	main(void)
{
	int	x = 5;
	int	y = 10;

	printf("Avant la fonction swap: x = %d, y = %d\n", x, y);
	ft_swap(&x, &y);
	printf("Apres la fonction swap: x = %d, y = %d\n", x, y);

	return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: