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
Compare array data type to pointer data type
Is c object oriented?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
will u please send me the placement papers to my mail???????????????????
What are the back slash character constants or escape sequence charactersavailable in c?
Write a program to check palindrome number in c programming?
How important is structure in life?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is a ternary operator in c?
Do you know pointer in c?
In which language linux is written?
how to make a scientific calculater ?
Write a progarm to find the length of string using switch case?
What are reserved words with a programming language?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream