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
How static variables and local variablesare similar and dissimilar?
What is #include ctype h in c++?
What are the manipulators in c++?
What are the methods of exporting a function from a dll?
Why c++ is created?
the maximum length of a character constant can be a) 2 b) 1 c) 8
How many types of classes are there in c++?
How does a copy constructor differs from an overloaded assignment operator?
Which operations are permitted on pointers?
Is java a c++?
What is basic if statement syntax?
Explain the uses oof nested class?
What is an incomplete type in c++?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
How long does it take to get good at leetcode?