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
What is the use of a ‘ ’ character?
Tell me about low level programming languages.
What are inbuilt functions in c?
Write a code to remove duplicates in a string.
Under what circumstances does a name clash occur?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What do you mean by c what are the main characteristics of c language?
Differentiate between declaring a variable and defining a variable?
#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); }
FILE PROGRAMMING
Explain the use of bit fieild.
What extern c means?
What is the purpose of void pointer?
Why do we use & in c?
Explain how can you avoid including a header more than once?