+ 11
Can we use pointers for functions??
9 Antworten
+ 6
~ swim ~ can we do this in C also???
+ 4
~ swim ~
Under this context, I don't understand the functionality of asterisk in the (*fptr) part, somehow I doubt whether it is dereference operator or what. Can I get a little help with that please?
TIA,
+ 4
~ swim ~
To be honest, the C++11 way left me with yet another question, still from that lonely asterisk within the parentheses, the one that looks like `(*)` and I go "what is being declared there now that there's only that one asterisk?" 😁
Lemme try to break it down, always correct me if I'm wrong ...
typedef => introduce type alias
int => function return type
(*fp) => the alias
(int, int) => function parameters list
Tell me how close I get ... 😁
+ 4
~ swim ~
Thank you very much, I think I prefer one who knows a bit more and share, rather than one who knows a lot but keeping it themselves hehehe 👍 ✌