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 |
Explain setjmp()?
Write a program to accept a character & display its corrosponding ASCII value & vice versa?
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
Write a C program to print 1 2 3 ... 100 without using loops?
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
what is data structure.in linear and non linear data structures which one is better?Explain
how does printf function work
write a c program for greatest of three numbers without using if statment
What is ambagious result in C? explain with an example.
What is use of integral promotions in c?
Write a c program using for loop in switch case?