Hello Folks!!!!!
Here is a question ...
I have two functions
void fun1(int i )
{
printf("%d",i);
}
void fun2(float f)
{
printf("%f",f);
}
I want to call the fun1 if the user-input is 1 and fun2 if the user-input is 2
I need to do this without using if-else, switch or conditonal operators... Any way to accomplish this ???
Here is a question ...
I have two functions
void fun1(int i )
{
printf("%d",i);
}
void fun2(float f)
{
printf("%f",f);
}
I want to call the fun1 if the user-input is 1 and fun2 if the user-input is 2
I need to do this without using if-else, switch or conditonal operators... Any way to accomplish this ???
Comment