How can I call a function, given its name as a string?
Answer Posted / hemant ware
A function can be called by object name and a function
name (sring ) with dot(.) operator.
e.g
class hi
{
void string()
{
cout<<"hello I am in string function";
}
};
void main()
{
hi h1;
h1.string();
}
Is This Answer Correct ? | 12 Yes | 46 No |
Post New Answer View All Answers
What is enumerated data type in c?
what is the height of tree if leaf node is at level 3. please explain
Explain what is the difference between functions getch() and getche()?
Explain how do you print an address?
What is queue in c?
What are the types of data files?
What is substring in c?
What is openmp in c?
What is the explanation for prototype function in c?
What is the difference between far and near ?
What is the size of structure pointer in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
How do you construct an increment statement or decrement statement in C?
What is the purpose of the statement: strcat (S2, S1)?