Name an advantage of linked list over array?
Answer Posted / amandeep singh bhatia
In array we can directly access any element by index number
but in Linked list it is not possible,in linked list if we
want to access any element then we go from starting node.
Is This Answer Correct ? | 12 Yes | 8 No |
Post New Answer View All Answers
#include
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 difference between class template and template class?
State what is encapsulation and friend function?
What is object in oops?
write string class as your own class in java without using any built-in function
What are constructors in oop?
What causes polymorphism?
What is encapsulation in oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Why is there no multiple inheritance?
What is inheritance and how many types of inheritance?
What is polymorphism what is it for and how is it used?
What is a class and object?
What is the full form of oops?