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
Which header file is used for clrscr?
How do we make a global variable accessible across files? Explain the extern keyword?
What is c basic?
What is difference between class and structure?
What does *p++ do?
find the sum of two matrices and WAP for it.
What are the general description for loop statement and available loop types in c?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
what is the role you expect in software industry?
Why do we use null pointer?
How many types of operators are there in c?
How are strings stored in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
How main function is called in c?
What is getche() function?