Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //*(&x + 8) = the value of x from the previous iteration
- void f(int x)
- {
- if (x > 0)
- {
- x = -x;
- printf("1\n");
- f(-2);
- }
- else
- {
- if (*(&x + 8) <= x)
- {
- printf("%i\n", -x);
- if (*(&x + 8) != x)
- f(*(&x + 8));
- }
- else
- {
- printf("%i\n", -(*(&x + 8) - 1));
- if (x != *(&x + 8) - 1)
- f(*(&x + 8) - 2);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement