cours/content/secu_logicielle/td8-gdb/files/modif-rev.c
2023-04-17 18:00:20 +02:00

21 lines
227 B
C

#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;
}