-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest02.c
31 lines (28 loc) · 1.18 KB
/
test02.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: arosado- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/12 16:01:25 by arosado- #+# #+# */
/* Updated: 2021/09/12 16:01:28 by arosado- ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
void ft_swap(int *a, int *b);
int main(void)
{
int *a;
int *b;
int n1;
int n2;
n1 = 9;
n2 = 6;
a = &n1;
b = &n2;
printf("Value of n1 is: %u and the value of n2 is: %u.", *a, *b);
ft_swap(a, b);
printf("\n");
printf("Now the value of n1 is: %u and the value of n2 is: %u.", *a, *b);
}