Answer Posted / preeti singh
A function pointer is a type of pointer that points to a
function, for e.g. a pointer to the function :
int fun(int a,int b)
can be declared as :
int(*myptr)(int a,int b);
here myptr is a type of pointer which can point to any
function which takes two integer arguments and returns int.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of main() function?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What are the different data types in C?
Can a variable be both const and volatile?
What is scope of variable in c?
Explain what are the standard predefined macros?
What is call by value in c?
Why is this loop always executing once?
Why is c still so popular?
write a program fibonacci series and palindrome program in c
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Can the curly brackets { } be used to enclose a single line of code?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Explain how can I open a file so that other programs can update it at the same time?
Can 'this' pointer by used in the constructor?