What is capacity in vector in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is an adjust field format flag?

0 Answers  


What is difference between c++ 11 and c++ 14?

0 Answers  


You run a shell on unix system. How would you tell which shell are you running?

0 Answers  


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


What does obj stand for?

0 Answers  






What is an adaptor class in c++?

0 Answers  


Difference between Abstraction and encapsulation in C++?

0 Answers   Impetus,


Implement a 2 dimensional array by one dimentional array

1 Answers   CTS,


How do you master coding?

0 Answers  


Write a program to add three numbers in C++ utilizing classes.

0 Answers   TCS,


what are the iterator and generic algorithms.

0 Answers  


Write a Program for find and replace a character in a string.

0 Answers  


Categories