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 difference between mpi and openmp?
What is && in c programming?
What would be an example of a structure analogous to structure c?
Are the variables argc and argv are local to main?
What are conditional operators in C?
How do you define a function?
What is meant by preprocessor in c?
Was 2000 a leap year?
Write a program to print factorial of given number using recursion?
How can I change the size of the dynamically allocated array?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is the explanation for prototype function in c?
Explain bit masking in c?
Simplify the program segment if X = B then C ← true else C ← false
Can we access array using pointer in c language?