what is the use of using linked list and array?
Answer Posted / vaishnavi varadarajan
Use of array: All the elements are lumped together in one
block of memory. Individual elements can be accessed thru
Array index. Random access & Dynamic allocation are
possible.
Use of Linked list: Linked list allocates space for each
element separately in its own block of memory called
a "linked list element" or "node". It gets the overall
structure by using pointers to connect all its nodes
together like the links in a chain. Here the elements of
list can be accessed thru memory address (Since the pointer
stores a reference to another variable)which improves the
efficiency. Size of the list can also be modified (ie) we
can insert/delete elements of the list.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What are the 4 types of functions?
What is actual argument?
Is using exit() the same as using return?
How can you read a directory in a C program?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is the significance of c program algorithms?
What are c header files?
What is the difference between void main and main in c?
What is unary operator?
Is it possible to have a function as a parameter in another function?
What language is c written?
What are register variables? What are the advantage of using register variables?
Is c programming hard?
What does void main () mean?