Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "iostream"
- using namespace std;
- void func1()
- {
- cout << "func1 //" << endl;
- }
- void func2()
- {
- cout << "func2 //" << endl;
- }
- void main()
- {
- void (*funcPointer)();
- funcPointer = func1;
- funcPointer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement