Either return a struct containing the results or pass them


Write a function that finds the smallest and the largest element of a vector argument and also computes the mean and the median. Do not use global variables. Either return a struct containing the results or pass them back through reference arguments. Which of the two ways of returning several result values do you prefer and why?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Either return a struct containing the results or pass them
Reference No:- TGS02192371

Expected delivery within 24 Hours