adspace
How do you initialize function pointers? Give an example?
Answer Posted / vadivel t
Initialisation can be done in the following way.
func(int a,int b);
*pfunc(int a, int b);
main()
{
/*here the starting address of the function can be assigned
to a function pointer of the same type*/
pfunc = func;
....
....
....
}
func(int a, int b)
{
....
....
....
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Differentiate between null and void pointers.
Explain the difference between null pointer and void pointer.
ATM machine and railway reservation class/object diagram
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
what is ur strangth & weekness
Do you know the difference between malloc() and calloc() function?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
write a c program to find the sum of five entered numbers using an array named number
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Is int a keyword in c?
How do you determine the length of a string value that was stored in a variable?
What is pointers in c with example?
develop algorithms to add polynomials (i) in one variable
write a program to find out prime number using sieve case?