What is the size of a vector?
Answer / Abhay Murari
The size of a vector in C++ refers to its capacity (the maximum number of elements it can currently hold) or its size (the number of elements currently stored). By default, when you create a vector without specifying the initial size, it starts with a small buffer and automatically grows as more elements are added. The specific values depend on the implementation of the C++ Standard Library.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do inline functions improve performance?
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
Can I create my own functions in c++?
Explain the isa and hasa class relationships.
What do you mean by funtion prototype?
Is c++ a difficult language?
What can I use instead of namespace std?
What are inline functions?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
By using c++ with an example describe linked list?
What is a dangling pointer in c++?
What are function poinetrs? where are they used?