difference between the array and linked list
general difference related to memory
Answers were Sorted based on User's Feedback
Answer / shravan katta
array allocated statically
linked list dynamic memory allocation
in the linked list have to remove the node at run time
but can't remove the array node
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / dr. sanyasi naidu pasala
In array memory will be allocated during compilation, where as in linked list memory will be allocated during run time. In array memory size will be depends on size of the array. In linked list memory will be allocated according to the user requirement. In array memory will be allocated in continuous memory locations but in linked kist memory will be allocated at random locations.
Is This Answer Correct ? | 0 Yes | 0 No |
to get a line of text and count the number of vowels in it
What is an example of enumeration?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
what are the files which are automatically opened when a c file is executed?
explain what are actual arguments?
What is the use of getch ()?
What is encapsulation?
How to compare array with pointer in c?
what are # pragma staments?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y
why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?
What does the message "warning: macro replacement within a string literal" mean?