#include void Choice0() { printf("In Choice 0 \n"); } void Choice1() { printf("In Choice 1 \n"); } void Choice2() { printf("In Choice 2 \n"); } int main() { int option = 1; // Call the function using switch-case switch (option) { case 0: Choice0(); break; case 1: Choice1(); break; case 2: Choice2(); break; } // Call the function using function pointer void (*ptr)() = Choice0; void (*func_ptr[3])() = {Choice0, Choice1, Choice2}; (*func_ptr[option])(); return 0; }