Question: Write a function named(difference), that accepts an integer one-dimensional array and its size, returns the differencell) between the largest element and the smallest element. e.g.

 Write a function named(difference), that accepts an integer one-dimensional array and

Write a function named(difference), that accepts an integer one-dimensional array and its size, returns the differencell) between the largest element and the smallest element. e.g. the array is [1.7.13.22.15,6,4.3.2.9.21] the output is:21 7 " 3

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!