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
Do you know pointer in c?
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.
What is scope and lifetime of a variable in c?
explain how do you use macro?
What is clrscr ()?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What are run-time errors?
Explain what are its uses in c programming?
Suggesting that there can be 62 seconds in a minute?
What 'lex' does?
Explain #pragma statements.
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
What is void main ()?
How can you increase the size of a statically allocated array?
How can I pad a string to a known length?