Is vector a class in c++?



Is vector a class in c++?..

Answer / Vishesh Anubhav Vashisht

Yes, vector is a standard template library (STL) container in C++ that can be used to store a sequence of elements. It allows dynamic memory allocation and supports operations like push_back(), pop_back(), size(), empty(), and at().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1 Answers  


What is this weird colon-member (" : ") syntax in the constructor?

1 Answers  


What is ios :: in in c++?

1 Answers  


Explain virtual class?

1 Answers  


What is math h in c++?

1 Answers  


Can I create my own functions in c++?

1 Answers  


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1 Answers  


write a program that a 5 digit number and calculates 2 power that number and prints it.

2 Answers   Vimukti Technologies,


Explain what you mean by a pointer.

1 Answers   TCS,


What is #include iomanip?

1 Answers  


What is main function in c++ with example?

1 Answers  


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1 Answers  


Categories