How do I initialize a pointer to a function?
Answers were Sorted based on User's Feedback
Answer / jaya prakash
return_type (*pointername)(arg list)
eg
void fnname();
void (*f)()=fnname;//ptr initialisation
//f is the poniter to fn printf
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / k.thejonath
void (*)f();
Here f if is pointer to a function having no arguments and
no return values.
| Is This Answer Correct ? | 7 Yes | 8 No |
What do you understand by normalization of pointers?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
p*=(++q)++*--p when p=q=1 while(q<=6)
Program to trim a given character from a string.
What is a dynamic array in c?
Do you know the use of 'auto' keyword?
program for reversing a selected line word by word when multiple lines are given without using strrev
Which driver is a pure java driver
What is the difference between fork() and vfork()?
Juxtapose the use of override with new. What is shadowing?
write a program to find the largest and second largest integer from an array
Here is a neat trick for checking whether two strings are equal