Multiple Choice
The easiest way to set all the values of a vector to zero is to use function:
A) fill
B) fill_n
C) generate
D) generate_n
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: Which of the following function calls would
Q11: The order of the arguments passed to
Q12: Which of the following is a valid
Q13: Which algorithm cannot take a predicate function
Q14: Function objects have their functions called by
Q16: Suppose you have a shopping list stored
Q17: Which of the following statements is false?<br>A)
Q18: Lambdas begin with the lambda introducer _,
Q19: Given that v1 and v2 are vectors,
Q20: The for_each function applies a general function