What are function pointers? Provide an example.
Answer / nashiinformaticssolutions
Pointers to functions that allow dynamic invocation of functions. Example:
void (*funPtr)(int) = &printNumber;
| Is This Answer Correct ? | 0 Yes | 0 No |
can we store values and addresses in the same array? explain
what does data structure mean?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
What is the general form of a C program?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
i want to job in your company, so how it will be possible.
how can make variable not in registers
What's the best way to declare and define global variables?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is a wrapper function in c?