Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is the whole code. As you can see the sort function does not return anything. The median function fibds the median based on the

Here is the whole code. As you can see the "sort" function does not return anything. The "median" function fibds the median based on the sorted numbers in the array. I'm wonderig how does the median function get the sorted numbers(biggest to smallest) so that it can fibd the median when the sort function does not return anything?
How does the array gets transferred? image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
#include void sort (float xI],int length) float median (float x[],int length) int main (void) float x[]={12,8,3,5, 9, 8, 12, 66); int i; int length; float medianfinalr: //finding the length of the array length-sizeof (x)/sizeof (x[0]) //unsorted numbers printf (" nThe numbers unsorted for (#0 ;

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

Step: 3

blur-text-image

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago