Compare Pastes
Differences between the pastes
#147012 (04.10.2020 09:23)
and
#158845 (31.12.2020 22:38).
1 | // 20201004 утечка памяти | |
2 | #include | |
1 | Happy New Year! My best wishes for the new year! Well-being, prosperity and health! | |
2 | ||
3 | void f(int vrem); | |
4 | int main(void) | |
5 | { | |
6 | int pause = 0; | |
7 | int i = 0; | |
8 | ||
9 | for (i = 0; i <= 10000; i++) | |
10 | f(i); | |
11 | ||
12 | printf ("\n"); | |
13 | scanf("%d", pause); | |
14 | return (0); | |
15 | } | |
16 | ||
17 | void f(int vrem) | |
18 | { | |
19 | int i = malloc(sizeof(int)); | |
20 | i = vrem; | |
21 | printf ("%d", i); | |
22 | return i; |