Difference between vector and array

Answer Posted / xxx

vector is also an array but the size of a vector can change
dynamically where in array its fixed.

we can create some reserve space in vector where in array we
cannot.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Get me a number puzzle game-program

1702


Why polymorphism is used in oops?

594


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2179


Why do we need polymorphism in c#?

697


What is static in oop?

595






what are the ways in which a constructors can be called?

1589


any one please tell me the purpose of operator overloading

1978


write a program that takes input in digits and display the result in words from 1 to 1000

1999


What is an interface in oop?

604


What are the features of oop?

645


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1907


What is the real time example of encapsulation?

604


Why is polymorphism used?

592


What is balance factor?

597


What is encapsulation example?

559