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 is queue in c?
What is a class c rental property?
program for swapping two strings by using pointers in c language
What is data structure in c programming?
Explain how does flowchart help in writing a program?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?
write a programme that inputs a number by user and gives its multiplication table.
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
c program to compute AREA under integral
Why n++ execute faster than n+1 ?
why the execution starts from main function