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

Is register a keyword in c?

1034


What is signed and unsigned?

1056


Write a program which returns the first non repetitive character in the string?

1116


write a program in c language to print your bio-data on the screen by using functions.

6781


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1341


how logic is used

1964


What does double pointer mean in c?

1162


What is the use of getchar() function?

1125


What is define directive?

1140


What is the role of && operator in a program code?

1061


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1360


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2300


What is fflush() function?

1130


What is the difference between array and linked list in c?

1144


Explain which function in c can be used to append a string to another string?

1086