How does pointer to pointer to function (**ppf)() differ from pointer to function (*pf)() in C? -


i wondering if there difference between int (**ppf)(int) , int (*pf)(int) in c.

c has wierd way of treating function pointers function automatically transforms pointer function. allows programmers write wierd stuff.

double (*pf)(double) = ***&*&***&*sin; (******&*&*puts)("hello, world!"); 

this strange , not see how useful.

here question(s) pointer pointer function in c.

does int (**ppf)(void) have more levels of indirection int (*pf)(void)?

is there case using (**ppf)() superior (*pf)()?

are there differences between them @ all?

is possible pointer pointer function in c?

yes there difference in between (**ppf)() , (*pf)(). , pointer pointer function exist in c.

void f(); void (*pf)() = f // or &f void (**ppf)(e) = &pf;   

any 1 of following function call can used call function f:
using f: f(); ( &f)(); (*f)(); (**f)(); (***f)();
using pf: pf(); (*&pf)(); (*pf)(); (**pf)(); (***pf)();
using ppf: (*ppf)(); (********ppf)


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -