Question: func_ptr.c : Please code in C Task Overview Task-1: Your first task is to complete the comparer function in the func-ptr.c file present in the

func_ptr.c :



Please code in C
Task Overview Task-1: Your first task is to complete the comparer function in the func-ptr.c file present in the provided source code. The details of this assignment are provided in the lab3.pdf slides. Task-2: Write a program that takes a single character 'O', '1', '2', '3") from the user as input, and based on the character it performs the following operation (on two pre-defined integers): 'O' - add '1'- subtract '2' - multiply '3' - divide '4' - exit program **Please note that you are not allowed to use any conditional statements (e.g. if-else, switch-case, goto etc.) in your program. You must insert your code for this task in the task2.c file included in the lab template. Run task2 using the command./func_ptr from the command prompt ** 1 2 3 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
