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
What does #define mean in c++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What are the rules about using an underscore in a c++ identifier? Using a smart pointer can we iterate through a container? How do you differentiate between overloading the prefix and postfix increments? What are the extraction and insertion operators in c++? why is iostream::eof inside a loop condition considered wrong? Do class method definitions? Can turbo c++ run c program? If there are two catch statements, one for base and one for derived, which should come first? Differentiate between C and C++. Does c++ support exception handling? What language does google use? Can a built-in function be recursive? What is Destructor in C++?