what is the diference between pointer to the function and
function to the pointer?
Answer Posted / selvakumar vedhachalam
There is no difference between poiter to function and
function pointer. It may be two different of saying the
same thing.
Pointer always points to a address.
Function pointer alwyas points to a address of a function.
Example:
void (*fn_ptr)(int, int);
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is the purpose of main( ) in c language?
What language is c written?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Write a program to reverse a linked list in c.
Why is c called c not d or e?
What are pragmas and what are they good for?
What are identifiers c?
Write a program to generate random numbers in c?
Explain how can I avoid the abort, retry, fail messages?
Explain what does it mean when a pointer is used in an if statement?
What is exit() function?
What is the purpose of sprintf?
Explain what are linked list?
How can I write a function that takes a format string and a variable number of arguments?
What is atoi and atof in c?