Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Function pointer in practice

Kittu20

Member level 2
Joined
Oct 18, 2022
Messages
52
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
427
Hello Everyone

I understand that function pointer is pointer in c language – that they store the address of a function, they can be use in call back. We can call the function using pointer insted of function name but the question what's advantage of using function pointer instead of using function name

Could you please provide some clarity on why and when function pointers are commonly used ? I'd appreciate any i examples you could offer to help me grasp their usefulness.
 
Call-back function is one of many cases where the address of a function to be called isn't known at compile time of the calling code. Therefore it can't be statically linked but must be provided as a pointer.
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top