What is the keyword that is used to retain the previous values, when we redim a dynamic array to different sizes?

  1. Redim Retain arr(s)

  2. Redim Preserve arr(s)

  3. Redim Persist arr(s)

  4. Redim CarryForward arr(s)


Correct Option: B

Find more quizzes: