Difference between Array and vector?

Answer Posted / aishwarya

Array is static memory allocation.
& vector is dynamic memory allocation

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a case study a method or methodology?

655


What is lazy programming?

771


Can we have two methods in a class with the same name?

805


How to sort elements in a parallel array in java?

685


What is an interface in java? Explain

818


Is integer passed by reference in java?

775


What is an image buffer?

728


Explain when noclassdeffounderror will be raised ?

814


Write a code to create a trigger to call a stored procedure

738


Can we write any code after throw statement?

816


Explain the difference between comparator and comparable in java?

689


What are untrusted applets?

829


How can you set an applet’s height and width as a percentage?

711


What is the maximum length of a url?

724


Which sorting is used in arrays sort in java?

861