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);
```
Explanation: 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.
You might also like to view...
In SharePoint Online, folders can contain up to ________ items
A) 50,000 B) 10,000 C) 5,000 D) 1,000
Which of these is not always a step in installing hardware devices?
a. Add the device. b. Reboot the computer. c. Locate appropriate device drivers for the device. d. Configure device settings.
Table names cannot contain spaces.
Answer the following statement true (T) or false (F)
The menu bar appears at the top of many windows and contains text-based lists (menus), which provide access to commands that can be selected to perform actions in that program. _________________________
Answer the following statement true (T) or false (F)