Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- void unknown(int* p, int num) {
- int *q = #
- *p = *q + 2;
- num = 7;
- }
- void hardToFollow(int* p, int q, int *num) {
- *p = q + *num;
- *num = q;
- num = p;
- p = &q;
- unknown(num, *p);
- }
- int main() {
- int* q;
- int trouble[3];
- trouble[0] = 1;
- q = &trouble[1];
- *q = 2;
- trouble[2] = 3;
- hardToFollow(q, trouble[0], &trouble[2]);
- unknown(&trouble[0], *q);
- std::cout << *q << ", " << trouble[0];
- std::cout << ", " << trouble[2] << std::endl;
- getchar();
- return 0;
- //3, 5, 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement