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 the use of sizeof?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
What is fflush() function?
What is %d used for?
How to develop software using "c" programming?
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
Write a program in C to print the alphabets in order as on a mobile phone.i.e:When 2 is pressed once 'a' prints and if it is pressed two times 'b' prints and so on.we have to print all the alphabets as on mobile phone like this.
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What's the difference between calloc() and malloc()?
What kind of structure is a house?
How we can write a value to an address using macro..?
Explain what does it mean when a pointer is used in an if statement?