Homework Clinic

Science Clinic => Computer Science => Programming and Graphic Design => Topic started by: piesebel on Aug 30, 2020

Title: What does the following code do? Assume list is an array of int values, temp is some previously ...
Post by: piesebel on Aug 30, 2020
What does the following code do?  Assume list is an array of int values, temp is some previously initialized int value, and c is an int initialized to 0.

◦ It finds the smallest value and stores it in temp
◦ It finds the largest value and stores it in temp
◦ It counts the number of elements equal to the smallest value in list
◦ It counts the number of elements in list that are less than temp
◦ It sorts the values in list to be in ascending order
Title: What does the following code do? Assume list is an array of int values, temp is some previously ...
Post by: Ksh22 on Aug 30, 2020
It counts the number of elements in list that are less than temp
Title: Re: What does the following code do? Assume list is an array of int values, temp is some previously
Post by: Shanara Watts on Nov 11, 2020
Thank you