How can you quickly find the number of elements stored in a
a) static array b) dynamic array ?
Answer Posted / murali
for static array start from highest index to lowest (
normal conditions apply*)
if dynamic array is a Container type, size() / length()
will do. if not process the nodes.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Search for: what is pair in c++?
Explain what is class definition in c++ ?
Explain virtual destructor?
How do you establish an is-a relationship?
What are the operators in c++?
Can you explicitly call a destructor on a local variable?
What is the basic of c++?
What is data structure in c++?
What is the c++ programming language used for?
What are the manipulators in c++?
Write about the use of the virtual destructor?
State the difference between pre and post increment/decrement operations.
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
Is c++ an integer?
What is the use of lambda in c++?