Back
Close

C++ Runnable Snippets

Marchete
145.2K views

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.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io