How can I call a function, given its name as a string?
Answer Posted / alice
You can't. You have to construct a table of two-field
structures, where the first field is the function name as a
string, and the second field is just the function name
(which the compiler will convert to its calling address).
Then search the table to get a string match in the first
field, and use the second field to call the function.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
how could explain about job profile
Why is it important to memset a variable, immediately after allocating memory to it ?
Why c is called procedure oriented language?
What does %p mean?
What is meant by int main ()?
How do you define CONSTANT in C?
What is queue in c?
Is a pointer a kind of array?
How can you call a function, given its name as a string?
When we use void main and int main?
Is main an identifier in c?
What are pointers really good for, anyway?
When should you use a type cast?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is a union?