How do you initialize function pointers? Give an example?
Answer Posted / vadivel t
Sorry the above function pointer declaration should be like
this
(*pfunc)(int, int);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between single charater constant and string constant?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Explain main function in c?
Is exit(status) truly equivalent to returning the same status from main?
what is use of malloc and calloc?
What does the function toupper() do?
largest Of three Number using without if condition?
number of times a digit is present in a number
Write a Program to find whether the given number or string is palindrome.
What is null in c?
Explain what is the purpose of "extern" keyword in a function declaration?
What is the use of header files?
What is the use of c language in real life?
Is c is a middle level language?
Differentiate between full, complete & perfect binary trees.