What is the meaning of following statement.
((void*(*)(void*))keepfunc)(val)
Note:- In general I have problem understanding such expressions. Could, someone
Please suggest me some good material(web or book) for this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should try “parsing” the expression from inside out:
function pointer to a function expecting a pointer of void and returnning a pointer of void
cast to a function pointer expecting a pointer of void and returnning a pointer of void
This should be wrong, since a function pointer must be dereferenced before it can be called. It should look something like this:
Was this a working example from a textbook on C programming?