Question: Which of the following shows the contents of vector pointed by v1 and v2 after running this code?

  1. `*v1:{1,2,3,4}; *v2:{5};`
  2. `*v1:{1,2,3,4,5}; *v2:{1,2,3,4,5};`
  3. Error
  4. `*v1:{1,2,3,4}; *v2:{1,2,3,5};`

Answer: The correct answer of the above question is Option B:`*v1:{1,2,3,4,5}; *v2:{1,2,3,4,5};`