Solved

The For_each Function Applies a General Function to Each Element

Question 20

Multiple Choice

The for_each function applies a general function to each element in the specified range. This general function should:


A) Take an argument of the elements' type and return nothing.
B) Take an argument of the elements' type and return a value of the elements' type.
C) Take an argument of a non-const reference to the elements' type and return nothing.
D) Take an argument of a non-const reference to the elements' type and return a value of the elements' type.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions