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
What is setfill c++?
What does ctime() do?
Is string data type in c++?
What are the advantages of pointers?
Write a program to concatenate two strings.
What are put and get pointers?
Can a Structure contain a Pointer to itself?
Is c or c++ more useful?
Are there any special rules about inlining?
What is atoi in c++?
What is the use of bit fields in structure declaration?
Explain about templates of C++.
What are associate containers?
Can we define function inside main in c++?
What apps are written in c++?