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
C. Both 1 and 2
D. Neither 1 nor 2
Answer: Option B

Join The Discussion