Can we pass function as a parameter?

We cannot pass the function as an argument to another function . But we can pass the reference of a function as a parameter by using a function pointer. This process is known as call by reference as the function parameter is passed as a pointer that holds the address of arguments.

Sizin İçin Seçtik  How do you pass future function as parameters in darts?

Leave a Reply

Your email address will not be published. Required fields are marked *

Can we pass function as a parameter?

We cannot pass the function as an argument to another function . But we can pass the reference of a function as a parameter by using a function pointer. This process is known as call by reference as the function parameter is passed as a pointer that holds the address of arguments.

Sizin İçin Seçtik  What is a const in Dart?

Leave a Reply

Your email address will not be published. Required fields are marked *