12 lines
187 B
C
12 lines
187 B
C
|
#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);
|
||
|
}
|