How can you quickly find the number of elements stored in a
a) static array b) dynamic array ?
Answer Posted / brainless
b) use pointer of last element - pointer of first element + 1
However, we should know the last element's pointer...
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Can a class be static in c++?
How would you call C functions from C++ and vice versa?
What are the 4 types of library?
What is a c++ map?
Is it possible to get the source code back from binary file?
What is virtual base class?
What are the advantages of early binding?
What is flush programming?
Define Virtual function in C++.
Write a program to concatenate two strings.
What are the comments in c++?
How do I tokenize a string in c++?
How do you compile the source code with your compiler?
What is the iunknown interface?
What are the data types in c++?