Vidyalelo
C++ Programming · Q870

C++ miscellaneous

Programming · C++ Programming · question 870

Q870

What is the use of sum() function in Valarray?

A.
Applies the manipulation provided to all the elements of the array
B.
Returns the summation of all elements of Valarray
Answer
C.
Returns new array after shifting elements by the given number
D.
Returns new array after circular shifting elements by the given number

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board