What is the Difference between "vector" and "array"?
Answer Posted / vivek
in vector space is not fixed,but in array space is fixed
second vector has memory allocation is dynamic which is
unsuitable at execution time but in array memory allocation
is continuously
array contain same datatype it is not in vector
array has compatibility to use 2d,3d arrayalso
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
an integer constant must have atleast one a) character b) digit c) decimal point
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What is the difference between structure and class?
Explain the uses of static class data?
Is python better than c++?
What is constructor in C++?
Mention the storage classes in c++.
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is rtti in c++? What is malloc in c++? Explain bubble sorting. Can I create my own functions in c++? What is microsoft c++ redistributable? What is the use of main function in c++?