What's the difference between a linked list and an array?

Answers were Sorted based on User's Feedback



What's the difference between a linked list and an array? ..

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

What's the difference between a linked list and an array? ..

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

What's the difference between a linked list and an array? ..

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

What's the difference between a linked list and an array? ..

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

Post New Answer

More C Interview Questions

program to find the ASCII value of a number

8 Answers  


Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 Answers   TCS,


write an algorithm to display a square matrix.

0 Answers  


Can you write the function prototype, definition and mention the other requirements.

0 Answers   Adobe,


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

0 Answers   Wipro,






how can use subset in c program and give more example

0 Answers  


What is the difference between File pointer and Internal Charecter Pointer?

2 Answers   TATA,


What is the use of f in c?

0 Answers  


write a program to create a sparse matrix using dynamic memory allocation.

0 Answers  


If I have a char * variable pointing to the name of a function ..

0 Answers  


What is #include in c?

0 Answers  


how to write optimum code to divide a 50 digit number with a 25 digit number??

0 Answers   MGM,


Categories