How do I initialize a pointer to a function?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program for Overriding.

698


What is the scope of static variables in c language?

637


What is a null string in c?

599


How pointer is different from array?

589


Explain what are the standard predefined macros?

661






What is volatile keyword in c?

589


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3345


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

720


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

676


How do I create a directory? How do I remove a directory (and its contents)?

613


Explain what is wrong with this program statement? Void = 10;

777


What is the data segment that is followed by c?

619


What is the importance of c in your views?

601


What is "Hungarian Notation"?

647


What is double pointer?

565