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
What is the value of uninitialized variable in c?
How does pointer work in c?
Does c have function or method?
What are register variables? What are the advantage of using register variables?
What is formal argument?
Array is an lvalue or not?
How do I use void main?
Explain what is the advantage of a random access file?
What is the difference between arrays and pointers?
What is a pointer value and address in c?
Explain #pragma statements.
Should I learn data structures in c or python?
Why is c called c not d or e?
Is it possible to initialize a variable at the time it was declared?
In c programming language, how many parameters can be passed to a function ?