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 |
code for replace tabs with equivalent number of blanks
find largest of 3 no
what is the difference between <stdio.h> and "stdio.h"
14 Answers Invendis, Kanbay, Mastek, MathWorks,
Are the variables argc and argv are local to main?
What is a constant?
c program to add and delete an element from circular queue using array
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
Why doesnt the call scanf work?
what is the output of printf("%d",(scanf("%d",10));
what is the difference between NULL('\0') and 0?
What does & mean in scanf?
C passes By value or By reference?
5 Answers Geometric Software, Infosys,