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 malloc() function?
What is c language in simple words?
In C, What is the #line used for?
What is main return c?
find the sum of two matrices and WAP for it.
Write a program to check palindrome number in c programming?
How can a number be converted to a string?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Explain what is a pragma?
Explain the difference between strcpy() and memcpy() function?
Can you mix old-style and new-style function syntax?
What are types of functions?
Why we not create function inside function.
What is register variable in c language?
Is null a keyword in c?