Why is it difficult to store linked list in an array?
Answers were Sorted based on User's Feedback
Answer / deepti
because in linklist we can store as many elements as we
want because size does not matter .but in case of array if
we define size suppose 20 we can store only 20 elements .
| Is This Answer Correct ? | 20 Yes | 2 No |
Answer / maria
Because of defragmentation, when node should be deleted.
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / sandy
because it grows dynamically. it can get extra node from
avail(available) list whereever array not having any avail
list......
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer /
array can grow dynamically...........
but it is a waste of memory to set them to grow dynamically
| Is This Answer Correct ? | 2 Yes | 14 No |
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
Why do we need templates?
What is switch case in c++ syntax?
What is a pointer with example?
Is there any difference between dlearations int* x and int *x? If so tell me the difference?
What is difference between class and function?
How important is c++?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is a wchar_t in c++?
Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.
What causes a runtime error c++?
How can I disable the "echo" feature?