What is the effect of this program segment?

```
#define MAX 50
int a[MAX], i, j, temp;
```
```
for (i = 0; i < MAX / 2; ++i) {
temp = a[i];
a[i] = a[MAX - i - 1];
a[MAX - i - 1] = temp;
}
```
a. Arranges the elements of array a in ascending order.
b. Counts the number of elements of a greater than its first element.
c. Reverses the numbers stored in the array.
d. Puts the largest value in the last array position.
e. None of the above.

c. Reverses the numbers stored in the array.

Computer Science & Information Technology

You might also like to view...

A subdatasheet is used to modify field properties.

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

Computer Science & Information Technology

Which of the following consists of rules and standards that define how a database organizes data?

A. data standard B. data model C. rules-based integration D. object-relation

Computer Science & Information Technology