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

how could explain about job profile

1871


Why is it important to memset a variable, immediately after allocating memory to it ?

2008


Why c is called procedure oriented language?

1003


What does %p mean?

1040


What is meant by int main ()?

1162


How do you define CONSTANT in C?

1218


What is queue in c?

1046


Is a pointer a kind of array?

1130


How can you call a function, given its name as a string?

1109


When we use void main and int main?

1031


Is main an identifier in c?

1094


What are pointers really good for, anyway?

1022


When should you use a type cast?

1064


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3265


What is a union?

995