prog.c: In function 'main':
prog.c:27:28: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
void * func_table[] = {(void *)sayHello, (void *)add, (void *)twice};
^
prog.c:27:46: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
void * func_table[] = {(void *)sayHello, (void *)add, (void *)twice};
^
prog.c:27:59: error: ISO C forbids conversion of function pointer to object pointer type [-Werror=pedantic]
void * func_table[] = {(void *)sayHello, (void *)add, (void *)twice};
^
prog.c:30:27: error: ISO C forbids conversion of object pointer to function pointer type [-Werror=pedantic]
printf("Add : %d\n", ((add_ptr)func_table[1])(10,5));
^
prog.c:31:6: error: ISO C forbids conversion of object pointer to function pointer type [-Werror=pedantic]
((hello_ptr)func_table[0])();
^
prog.c:32:28: error: ISO C forbids conversion of object pointer to function pointer type [-Werror=pedantic]
printf("Twice : %d\n",((twice_ptr)func_table[2])(10));
^
prog.c:22:9: error: unused variable 'choice' [-Werror=unused-variable]
int choice;
^
cc1: all warnings being treated as errors