2019-09-27 in class

This commit is contained in:
Claudio Maggioni 2019-09-27 09:58:45 +02:00
parent 20b7254c19
commit 6b4caa8223

14
swap.c Normal file
View file

@ -0,0 +1,14 @@
#include <stdio.h>
void swap(int* a, int* b) {
*a = *a ^ *b;
*b = *b ^ *a;
*a = *a ^ *b;
}
int main() {
int a = 3, b = 5;
swap(&a, &b);
printf("%d %d", a, b);
}