Which of the following function declarations with default arguments are correct?

a) ```
void g(int length, int width, int height = 1);
```
b) ```
void g(int length=1, int width, int height);
```
c) ```
void g(int length, int width=1, int height = 1);
```
d) ```
void g(int length=1, int width=1, int height);
```


a) ```
void g(int length, int width, int height = 1);
```

and

c) ```
void g(int length, int width=1, int height = 1);
```

C++ allows default arguments. If a default argument is provided for a parameter, all parameters to the right of this must be provided with default arguments.

Computer Science & Information Technology

You might also like to view...

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

1) PictureBoxes can be used with .gif, .jpg, bitmaps, icons and metafiles. 2) The Directory class can be used to find specific images on the computer. 3) The GetCurrentDirectory is used to return the location of the current working directory (the location from which the program is running). 4) The Directory class is found within the System namespace.

Computer Science & Information Technology

A(n) ___________ is a medium-sized computer that usually services less users, stores less data, and processes data more slowly than a mainframe computer.

a. minicomputer b. microcomputer c. ENIAC d. desktop e. FORTRAN

Computer Science & Information Technology

____ usually refers to the main code that makes up an application.

A. Raw code B. Source code C. Binary file D. Client code

Computer Science & Information Technology

Harold wants to print ranges E6:F12 and E16:F22 of his worksheet. These are referred to as _____ cell ranges.

A. selective B. nonadjacent C. consecutive D. specific

Computer Science & Information Technology