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
Is sizeof a keyword in c?
What is difference between function overloading and operator overloading?
What is the use of pragma in embedded c?
Why we use stdio h in c?
What is the role of && operator in a program code?
What are multibyte characters?
How can I change their mode to binary?
Who developed c language?
What is c standard library?
Write a program to reverse a string.
What is meant by errors and debugging?
What are pointers? Why are they used?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What is a program flowchart?
how can I convert a string to a number?