42. Function Pointers : C

Function Pointers

Function Pointers in C


It implies the pointer to a capacity. The capacity name can be utilized to get the capacity address.

 

Punctuation - function_return_type(*Name_of_pointer)(function contentions list) 


It tends to be valuable when we need to make a callback system and need to pass the capacity's location to another capacity. They can likewise be helpful when you need to store a variety of capacities to call progressively. 


Some Important focuses concerning Function pointer

  • We can announce a capacity pointer and relegate a capacity to it in a solitary assertion. 
  • We can eliminate the ampersand(&) from the assertion because a capacity name alone addresses the capacity address. 

Post a Comment

0 Comments