1.

What are the vectors?(a) Arrays with dynamic size(b) Arrays with different types of elements(c) Same as array classes(d) Arrays with static size but use template classesI had been asked this question in an online quiz.This interesting question is from seq_con Vector Class topic in portion Class Hierarchies, Library & Containers of C++

Answer»

The CORRECT OPTION is (a) ARRAYS with dynamic size

Best EXPLANATION: Vectors are just like arrays with the ability to resize itself whenever an ELEMENT is added to or deleted from it.



Discussion

No Comment Found

Related InterviewSolutions