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  Can class variables be static?

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  Is there a big difference between 3G and 5G?

Leave a Reply

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