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 the difference between array and pointer?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What does 1f stand for?
can any one tel me wt is the question pattern for NIC exam
What do you mean by c what are the main characteristics of c language?
What is the difference between printf and scanf in c?
Can we declare a function inside a function in c?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
Explain what standard functions are available to manipulate strings?
Is c procedural or functional?
Can you please explain the scope of static variables?
Difference between linking and loading?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is table lookup in c?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university