Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is malloc() function?

1097


What is c language in simple words?

1013


In C, What is the #line used for?

2097


What is main return c?

935


find the sum of two matrices and WAP for it.

1068


Write a program to check palindrome number in c programming?

962


How can a number be converted to a string?

1241


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1096


Explain what is a pragma?

993


Explain the difference between strcpy() and memcpy() function?

948


Can you mix old-style and new-style function syntax?

1048


What are types of functions?

974


Why we not create function inside function.

2142


What is register variable in c language?

987


Is null a keyword in c?

1139