Insert const before .any of the following array parameters that can be changed to const.

```
void output(double a[], int size);
//Pre: a[0] through a[size-1] have values set.
//Post: a[0] through a[size-1] have been displayed on the screen.

void dropOdd(int a[], int size);
//Pre: a[0] through a[size-1] have values set.
//Post: All odd numbers in a[0] through a[size-1] have //been changed to 0.
```


```
void output(const double a[], int size);
```

Only the output function can have its array parameter changed to const:
It does nothing for the client to make a value parameter const, and this can annoy the programmer. (She cannot assign the parameter as is sometimes needed.) The dropOdd function postcondition asserts that dropOdd will change its array argument, so we cannot make that array const.

Computer Science & Information Technology

You might also like to view...

Having many _________ values in your database wastes space and causes problems working out totals.

a. binary b. atomic c. null d. string

Computer Science & Information Technology

Match the following terms with their meaning:

I. mixed cell reference II. proper formula III. absolute cell reference IV. relative cell reference V. improper formula A. $V18 B. =(C8\C9)*C10 C. =(C9/C10)+D25 D. $T$15 E. R24

Computer Science & Information Technology

What does XML stand for?

A) eXtensible Markup Language B) Extra Markup Language C) External Markup Language D) Extention Markup Language

Computer Science & Information Technology

Elements in an associative container are not sorted automatically.

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

Computer Science & Information Technology