SCR et DEV

This commit is contained in:
Simoes Lukas
2024-10-09 09:59:41 +02:00
parent 7d319d2d6a
commit af0a212997
4 changed files with 250 additions and 0 deletions

22
DEV1.1/TP16/tests.c Normal file
View File

@@ -0,0 +1,22 @@
# include <stdio.h>
# include <stdlib.h>
void inverse_variables(int a, int b) {
int temp;
temp = a;
a = &b;
b = &temp;
}
int main(void) {
int x, y;
x = 12;
y = 5;
printf("avant : x = %d y = %d\n", x, y);
inverse_variables(x, y);
printf("avant : x = %d y = %d\n", x, y);
return EXIT_SUCCESS;
}