Question: Exercise 2 (35Pts). (Pointer and function) Write a C function that receives two integer pointers. The function should calculate and return the result from the
Exercise 2 (35Pts). (Pointer and function) Write a C function that receives two integer pointers. The function should calculate and return the result from the following equation: f(a,b)- a2/2 b3/3 Write a C function that receives one integer pointer and one float integer. The function should calculate and print the result from the following equation: fa,b) 2 a cos(b) in that a is the integer value and b is the float value Write a C program that reads an option (option value can be i, 2 or 3). Option- 1: calls function 1 Option- 2: calls function 2 Option 3: exits and prints "Exit program... While option equals 1 or 2, repeat option choosing. Output example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
