Use the replace_if algorithm to replace with 0 all elements with values greater than 100 in the array of ints named values. Function greaterThan100 returns true if its argument is greater than 100.

What will be an ideal response?

```
replace_if(values.begin(), values.end(), greaterThan100, 0);
```

Computer Science & Information Technology

You might also like to view...

The ability to import PDF files into Word so that you can transform a PDF back into a fully editable Word document

a. Mail merge b. PDF Reflow c. Wrap text

Computer Science & Information Technology

Which of the following is the correct hierarchy of iterator categories (weakest at the left)?

a. Input/output, forward, bidirectional, random access. b. Random access, forward, bidirectional, input/output. c. Bidirectional, forward, random access, input/output. d. Input/output, bidirectional, forward, random access.

Computer Science & Information Technology