Hi
I have a group of functions which have the same signature.
void fun_n(void);
according to a conditional structure "be it if-else or switch-case" I
get to choose which one to run.
conditional structure verifies a short type and fires the fun_n in its
block.
is this a good candidate for a function pointer? I was googleing and
wanted to practice a bit but only if it is a better approach.
any guidance is appreciated.
thanks
I have a group of functions which have the same signature.
void fun_n(void);
according to a conditional structure "be it if-else or switch-case" I
get to choose which one to run.
conditional structure verifies a short type and fires the fun_n in its
block.
is this a good candidate for a function pointer? I was googleing and
wanted to practice a bit but only if it is a better approach.
any guidance is appreciated.
thanks
Comment