what is the difference between arrays and linked list
Answer Posted / shruti
the main differance between arrays and linked list is:
In array we follow static memory allocation.
i.e we assign memory to the particular element in advance.
in linked list -> dynamic memory allocation.
i.e we assign memory to the particular element at run-time..
hence we reserve only the amount of memory which is
required.
there is no problem of memory shortage or wastage, in
linked list. which we very frequently come accross in the
arrays..
Is This Answer Correct ? | 137 Yes | 21 No |
Post New Answer View All Answers
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is #include stdio h and #include conio h?
what is the difference between class and unio?
What are multibyte characters?
List the difference between a While & Do While loops?
What is abstract data structure in c?
Do pointers need to be initialized?
What does typeof return in c?
What is pointer to pointer in c with example?
Where are the auto variables stored?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Write a program on swapping (100, 50)
What is static and auto variables in c?
What is null in c?
Why c is called top down?