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
Can we use this pointer inside static member function?
What is encapsulation in c++?
What is abstraction c++?
Explain the difference between static and dynamic binding of functions?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Difference between inline functions and macros?
Which operator cannot be overloaded c++?
What is the size of integer variable?
Is C++ case sensitive a) False b) Depends on implementation c) True
Difference between delete and free.
How to access a variable of the structure?
What is ifstream c++?
What return value must conversion operators have in their declaration?
Can I learn c++ in a week?