How do you initialize function pointers? Give an example?

Answer Posted / vadivel t

Sorry the above function pointer declaration should be like
this

(*pfunc)(int, int);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of a ‘’ character?

595


Tell me about low level programming languages.

651


What are inbuilt functions in c?

570


Write a code to remove duplicates in a string.

639


Under what circumstances does a name clash occur?

704






Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

602


What do you mean by c what are the main characteristics of c language?

580


Differentiate between declaring a variable and defining a variable?

616


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

639


FILE PROGRAMMING

1783


Explain the use of bit fieild.

721


What extern c means?

551


What is the purpose of void pointer?

609


Why do we use & in c?

599


Explain how can you avoid including a header more than once?

609