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 / alice

You can't. You have to construct a table of two-field
structures, where the first field is the function name as a
string, and the second field is just the function name
(which the compiler will convert to its calling address).
Then search the table to get a string match in the first
field, and use the second field to call the function.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the value of uninitialized variable in c?

1028


How does pointer work in c?

1115


Does c have function or method?

990


What are register variables? What are the advantage of using register variables?

1176


What is formal argument?

1126


Array is an lvalue or not?

1115


How do I use void main?

1087


Explain what is the advantage of a random access file?

1112


What is the difference between arrays and pointers?

1118


What is a pointer value and address in c?

1115


Explain #pragma statements.

1038


Should I learn data structures in c or python?

1010


Why is c called c not d or e?

1090


Is it possible to initialize a variable at the time it was declared?

1212


In c programming language, how many parameters can be passed to a function ?

1103