A group of comparable data elements kept in close proximity to one another in memory is called an array. It is the most basic data structure because each data element may be immediately retrieved by using only its index number.
The first k items of the x array will be sorted into descending order by the main program by calling the function sortarray(). An array is a collection of memory locations, or "boxes," each of which contains a single piece of data and which has the same identifier. An array must contain only elements of the same data type. Consider a scenario where a score table for a game needs to record ten scores.
A collection of elements (values or variables) is referred to as an array and is a type of data structure. Each element is identifiable by at least one array index or key. Array types may be confused with or overlap with other data types that express collections of values, such as lists and strings, depending on the language.
Therefore the correct answer is option C ) The main program will call the method sortarray() (see part 3 below) to sort the first k elements of the x array into descending order.
To learn more about array refer to :
https://brainly.com/question/29537583
#SPJ4