Why Pointers To Functions in C++ -


I want to ask when do we need to use the indicators for more functions? I had received some searches and answers so that we could use different functions at different times, but can we still do this by calling the function directly?

Thank you.

I do not think there is any other way to do this in C.

It is possible to obtain the same effect by using the object with the virtual member function in C ++, the object is the reference of the base class or the indicator then the object pointer is used directly to the function pointer Same is serving the same purpose.



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -