1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//Implementing Hash Table #include "stdio.h" void fa() { printf("a\n"); } void fz() { printf("it's z!\n"); } typedef void (*F)(); F table[2]={fa,fz}; int main() { int c; c = 1; //scanf("Enter the function to call-->%d" ,&c ); table[c](); return 0; }
1
it's z!