How would you best describe the purpose of the following code?

```
f = 0;
for (i = 1; i < N; ++i)
if (a[i] >= a[f])
f = i;
```
a. Rearrange the first N components of array a in descending order.
b. Rearrange the first N components of array a in ascending order.
c. Place the largest component of array a in position N.
d. Compute the value of the largest component in array a.
e. Determine the subscript of the last occurrence of the largest of the first N components of array a.

E

Computer Science & Information Technology

You might also like to view...

You cannot actually create a many-to-many relationship

Indicate whether the statement is true or false

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. Main memory is typically capable of storing more information than a secondary storage device. 2. User account codes are private property. 3. This assignment statement stores the sum of b and c in a: b + c = a;

Computer Science & Information Technology