C++ Runnable Snippets

Marchete
147.7K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Passing a function as parameter to another function

C++ has two ways to pass a function as a parameter.

As you see, you can use either operation() or operation2() to give the same result.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content