Hello and good evening,...
im famliear with an alternative way with commond block that instead of using if/case you use an array and just jump to next place in the array
example:
Code:
void func(char *number)
{
int i = 0;
int array[10]={0,1,2,3,4,5,6,7,8,9};
for (i = 0; i < strlen(number) + 1; i++)
printf( "%d" , array[number[i] - '0'] );
}
in this exapmle instead of using multipile if or case i get the value inside of an array.
this nice only with known values.
now i'd like to some how call function in this same method
what i mean is some how to store a call func to other functions
yours truley