Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- typedef void (*lulz)(int, int);
- void leave(int code, int x)
- {
- cout<<"Done"<<endl;
- exit(code);
- }
- void function(int i,int g)
- {
- lulz array[2] = {function, leave};
- cout<<i<<endl;
- (*array[(i)/g])(++i,g);
- }
- int main()
- {
- function(1,5);
- return 0;
- }
Add Comment
Please, Sign In to add comment