Sail E0 Webinar
Question
Which of these methods is used to add elements in vector at specific location?
Options:
A .  add()
B .  set()
C .  AddElement()
D .  addElement()
Answer: Option D


addElement() is used to add data in the vector, to obtain the data we use elementAt() and to first and last element we use firstElement() and lastElement() respectively.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers