Why is it difficult to store linked list in an array?

Answer Posted / murali

Because array can not grow dynamically

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to initialize a const data member.

582


What is the difference between an array and a list?

579


What is the arrow operator in c++?

550


What is the difference between interpreters and compilers?

616


What are the differences between new and malloc?

621






What is a wchar_t in c++?

572


Can I learn c++ without knowing c?

578


What is friend class in c++ with example?

487


What is the sequence of destruction of local objects?

546


What is the difference between ++ count and count ++?

567


Why c++ is faster than java?

584


What is meant by the term name mangling in c++?

507


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

595


What is the use of structure in c++?

543


Differentiate between realloc() and free().

581