c_piscine__offshore_mains/c01/ex02.c

12 lines
187 B
C
Raw Normal View History

2023-11-22 15:59:54 +00:00
#include <stdio.h>
void ft_swap(int *a, int *b);
int main(void)
{
int one = 1;
int two = 2;
printf("was %d %d\n", one, two);
ft_swap(&one, &two);
printf("now %d %d\n", one, two);
}