What's the difference between a linked list and an array?
Answers were Sorted based on User's Feedback
Answer / amneh tanbouz
Link list data is not stored in a contiguous memory, while
an array is a contiguous block of memory that is set aside
to store items of a single data type. also Linked list use
only the amount of memory required to store the data. An
array grabs a block of memory but may not use all of it for
actual storage data.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / bsn.teja
answers 1,2,3,4,5,11,13 gives the entire difference between
array and linked list.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / n.muthukumar
A linked list consists of data nodes, each pointing to the
next in the list. An array consists of contiguous chunks
memory of predetermined size.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ashish chauhan
A linked list consists of data nodes, each pointing to the
next in the list. An array consists of contiguous chunks
memory of predetermined size
| Is This Answer Correct ? | 4 Yes | 4 No |
void main() { int *ptr; ptr = (int *) 0x400 ; printf("ptr=%d",ptr); } output?
What are the general description for loop statement and available loop types in c?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain About fork()?
what is diff b/w huge & far & near pointer??
code for quick sort?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is assert and when would I use it?
main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā%dā,x); }
What are the disadvantages of external storage class?
List the different types of c tokens?
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?