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 |
What are the types of data structures in c?
what is dangling pointer?
which is the best antivirus and how to update it
How can I allocate arrays or structures bigger than 64K?
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............?
How can I automatically locate a programs configuration files in the same directory as the executable?
how to print 2-D array using a single for loop?
2 Answers Mind Tree, TCS, Value Labs,
What is #pragma statements?
What is the use of the function in c?
What is c language & why it is used?
What is the use of getchar functions?
How to get string length of given string in c?