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
Explain how to initialize a const data member.
What is the difference between an array and a list?
What is the arrow operator in c++?
What is the difference between interpreters and compilers?
What are the differences between new and malloc?
What is a wchar_t in c++?
Can I learn c++ without knowing c?
What is friend class in c++ with example?
What is the sequence of destruction of local objects?
What is the difference between ++ count and count ++?
Why c++ is faster than java?
What is meant by the term name mangling in c++?
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.
What is the use of structure in c++?
Differentiate between realloc() and free().