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


Please Help Members By Posting Answers For Below Questions

Which header file is used for clrscr?

565


How do we make a global variable accessible across files? Explain the extern keyword?

1407


What is c basic?

589


What is difference between class and structure?

560


What does *p++ do?

574






find the sum of two matrices and WAP for it.

620


What are the general description for loop statement and available loop types in c?

675


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1654


what is the role you expect in software industry?

1643


Why do we use null pointer?

597


How many types of operators are there in c?

608


How are strings stored in c?

577


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

631


How main function is called in c?

617


What is getche() function?

597