Examveda

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

Related Questions on C plus plus miscellaneous

What is the difference between '++i' and 'i++' in C++?

A. None of the above

B. They both have the same effect

C. '++i' increments the value of 'i' before returning it, while 'i++' increments the value of 'i' after returning it

D. '++i' increments the value of 'i' after returning it, while 'i++' increments the value of 'i' before returning it