This commit is contained in:
Yorick Barbanneau 2023-04-17 18:00:20 +02:00
parent 7c934bcefb
commit 453d88282f
8 changed files with 588 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#include <stdio.h>
void f(int *x) {
int i;
for (i = 0; i < 10000; i++)
(*x)++;
(*x) *= 2;
}
void g(int *y) {
return f(y);
}
int main(void) {
int b = 0;
int a = 0;
int c = 0;
g(&a);
printf("%d\n", a);
return 0;
}