Question: Write a function namedi difference) that accopis an Integer one-dimensional array and its size, returns the difference between the largest element and the smallest element

 Write a function namedi difference) that accopis an Integer one-dimensional array

Write a function namedi difference) that accopis an Integer one-dimensional array and its size, returns the difference between the largest element and the smallest element e.g the array is [1.7.13.22.15.64.3.2.9.21) the output is:21 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!