I have 100 functions with different names.I will have to call from main function by accepting the name of the function from the user.
for example user entered 'add' ,then it will call add function which
is immediately below the main funtion.For that i am using 100
comparission statements.Is there any other alternative so that
we can call the corresponding function without using comparision.
problems i am facing:
1.user giving name of the funtion which is accepted into a string buffer,
how can i call that function when i know the name of the function when it running.
2.only using c language.
for example user entered 'add' ,then it will call add function which
is immediately below the main funtion.For that i am using 100
comparission statements.Is there any other alternative so that
we can call the corresponding function without using comparision.
problems i am facing:
1.user giving name of the funtion which is accepted into a string buffer,
how can i call that function when i know the name of the function when it running.
2.only using c language.