What is function pointer and where we will use it
Answer Posted / bsreddi
A function pointer is a type of pointer in C, C++ and other
C-like programming languages. When dereferenced, a function
pointer invokes a function, passing it zero or more
arguments just like a normal function. In programming
languages like C, function pointers can be used to simplify
code, such as replacing large switch statements.
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
explain what is an endless loop?
How would you obtain the current time and difference between two times?
Is multithreading possible in c?
Between macros and functions,which is better to use and why?
What is the difference between local variable and global variable in c?
cavium networks written test pattern ..
What are the disadvantages of external storage class?
What is calloc in c?
What is oops c?
Is it acceptable to declare/define a variable in a c header?
Why does everyone say not to use scanf? What should I use instead?
What is the purpose of & in scanf?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What are the two types of structure?
Why do we use static in c?