What is the Difference between "vector" and "array"?

Answer Posted / avinash moras

arrays have definite size and cannot be increased once
declared....whereas the size of vectors can be increased
once it is on the mark to get filled...vectors ae declared
in java.util package*;

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data hiding c++?

601


What does obj stand for?

627


What are the various situations where a copy constructor is invoked?

608


How do you compile the source code with your compiler?

615


Is c++ built on c?

563






What is virtual base class uses?

711


What are static and dynamic type checking?

608


What is #include c++?

569


What causes a runtime error c++?

581


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

580


How is new() different from malloc()?

633


What are the general quetions are in DEna bank manager IT/System interviews?

1531


What are pointer-to-members in C++? Give their syntax.

617


What is pure virtual function?

626


What are the stages in the development cycle?

575