Vidyalelo
C++ Programming · Q298

C++ miscellaneous

Programming · C++ Programming · question 298

Q298

Which of the following is correct about shift() and cshift()? 1. shift() makes some values of Valarray equal to 0 after shifting by a non-zero number 2. cshift() makes some values of Valarray equal to 0 after shifting by a non-zero number

A.
2 only
B.
1 only
Answer
C.
Both 1 and 2
D.
Neither 1 nor 2

Answer: Option B

Solution

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