stepping.c
555 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
int a(int);
int b(int);
int c(int);
int complex(int, int, int);
int a(int val) {
int return_value = val;
if (val <= 1) {
return_value = b(val);
} else if (val >= 3) {
return_value = c(val);
}
return return_value;
}
int b(int val) {
int rc = c(val);
return rc;
}
int c(int val) { return val + 3; }
int complex(int first, int second, int third) { return first + second + third; }
int main(int argc, char const *argv[]) {
int A1 = a(1);
int B2 = b(2);
int A3 = a(3);
int A4 = complex(a(1), b(2), c(3));
return 0;
}