How can I call a function, given its name as a string?
Answers were Sorted based on User's Feedback
Answer / 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|
Answer / ashay
Ashay here according to the programming scenario u cannot
give a function the name of a system defined identifier and
string is a system defined identifier and as aresult of
which u r unable to call
|Is This Answer Correct ?||9 Yes||8 No|
Answer / neeraj
#define string sum1()
|Is This Answer Correct ?||0 Yes||1 No|
Answer / hemant ware
A function can be called by object name and a function
name (sring ) with dot(.) operator.
cout<<"hello I am in string function";
|Is This Answer Correct ?||12 Yes||46 No|
how write a addtion of two single dimensional array using of pointer in c language?
What is extern storage class in c?
Is reference used in C?
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]
application of static variables in real time
What are the 5 types of organizational structures?
provide an example of the Group by clause, when would you use this clause
can we implement multi-threads in c.
What is the use of a conditional inclusion statement in C?
Explain what is a 'locale'?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
By using C language input a date into it and if it is right?