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


Please Help Members By Posting Answers For Below Questions

Do you know pointer in c?

842


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1877


What is scope and lifetime of a variable in c?

815


explain how do you use macro?

938


What is clrscr ()?

906


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

828


What are run-time errors?

863


Explain what are its uses in c programming?

837


Suggesting that there can be 62 seconds in a minute?

837


What 'lex' does?

951


Explain #pragma statements.

832


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2130


What is void main ()?

838


How can you increase the size of a statically allocated array?

879


How can I pad a string to a known length?

819