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

What are the types of data structures in c?

0 Answers  


what is dangling pointer?

1 Answers   LG Soft,


which is the best antivirus and how to update it

7 Answers   Infosys,


How can I allocate arrays or structures bigger than 64K?

5 Answers  


Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?

5 Answers  






How can I automatically locate a programs configuration files in the same directory as the executable?

0 Answers  


how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


What is #pragma statements?

0 Answers  


What is the use of the function in c?

0 Answers  


What is c language & why it is used?

0 Answers  


What is the use of getchar functions?

0 Answers  


How to get string length of given string in c?

0 Answers  


Categories