Which of the following is correct about shift() and cshift()?
Posted: Wed Jul 13, 2022 7:53 pm
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
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