Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void f1(int a){
- cout << "chlen " << a << " sm";
- }
- void f2(int a, int chlen, void (*f1)(int)){
- cout << "mne " << a << " let" << endl;
- cout << "i moi ";
- f1(chlen);
- }
- int main(){
- f2(22, 20, f1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement