Answer the question
In order to leave comments, you need to log in
Function links?
Here is the function: void func () ;
Please explain the difference between this void ( * const pointFunc ) () = func ;
AND this: I void ( & refFunc ) () = func ;
didn’t find anything for the last option, Stroustrup doesn’t have it either, and only options with a function pointer are googled.
I know about function pointers, but references to them are something new.
This option compiles for me even with -c++ 98, then why there are no examples of its use anywhere, it’s more convenient because instead of a constant pointer.
Answer the question
In order to leave comments, you need to log in
why there are no examples of its use anywhere, it is more convenient instead of a constant pointer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question