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 function overloading c++?
Write a struct time where integer m, h, s are its members?
Write a program to find the Factorial of a number
What is meant by the term name mangling in c++?
Mention the ways in which parameterized can be invoked. Give an example of each.
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Which sort does c++ use?
How should a contructor handle a failure?
What is an adaptor class in c++?
Is there a sort function in c++?
What is the use of string in c++?
Program to check whether a word is a sub-string or not of a string typed
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
Does improper inheritance have a potential to wreck a project?
What is c strings syntax?