aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Programming Fundamentals
  • Which of the following functions of vector class gives cu...
Multiple choice

Which of the following functions of vector class gives current capacity of the vector?

  1. begin()

  2. clear()

  3. capacity()

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This function of vector class gives the current capacity of the vector.

Keep practicing — related questions

  • Which of the following methods in vector class of java returns the capacity of the vector?
  • What is the size and capacity of the Vector Num in the following code? Vector Num=new Vector(10)
  • What is the initial capacity of Vector?
  • What is the initial capacity of vector?
  • Which of the following is a method of Vector class in Java Collection Framework?
  • What will be returned by the function capacity()? StringBuffer s = new StringBuffer(“Hello”); s.capacity();
  • Which of the following memory allocation functions frees a block of allocated memory in 'C'?
  • Which of the following methods of Vector class returns the element at the location specified by the argumen...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy