Name an advantage of array over linked list?
Answer Posted / amandeep singh bhatia
IN array we can directly access any element by index number
but in linked list if we want to access any element then we
have to go from starting and linearly we access that
element.
| Is This Answer Correct ? | 43 Yes | 11 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is protected in oop?
What is the purpose of enum?
What is abstraction in oop with example?
Why multiple inheritance is not allowed?
What is class and object in oops?
What is data binding in oops?
What is multilevel inheritance?
can we make game by using c
What is polymorphism explain its types?
what is the drawback of classical methods in oops?
What is purpose of inheritance?
What is destructor example?
Prepare me a program for the animation of train
Are polymorphisms mutations?