Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paragraph Your job will be to create a program that uses pointers. Your output must be done in the main function and the calculations MUST

image text in transcribed

Paragraph Your job will be to create a program that uses pointers. Your output must be done in the main function and the calculations MUST be done in the three functions. Therefore you MUST use pointers correctly. You must declare and implement the following 3 functions. Below are the three prototypes that you must use in this program. void max (int *a, int *b, int *c, int *d, int *result); void min (int *a, int *b, int *c, int *d, int *result); void mul (int *a, int *b, int *c, int *d, int *result); The functions have the following meaning: max finds the max value of a,b,c,d and stores the largest value in result. min finds the min value of a,b,c,d and stores the largest value in result. mul multiplies a * b* c and divides by d. Stores that value in result. Below is an example input/output. This input will be read in via the keyboard (use scanf) input output (note that user input is shown in bold) 1234 Enter the 4 numbers: 1 2 3 4 The max is 4. The min is 1. (a *b* c)/ d = 1 100 3 201 103 Enter the 4 numbers: 100 3 201 103 The max is 201. The min is 3. (a * b*c)/d=585 Your output MUST match exactly the output and the input from above. You only need to submit your file (pointers.c)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions