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

#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


shorting algorithmS

0 Answers   Wipro,


What is echo in c programming?

0 Answers  


Which of these statements are false w.r.t File Functions? i)fputs() ii)fdopen() iii)fgetpos() iv)ferror() A)ii B)i,ii C)iii D)iv

6 Answers   Accenture,


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

0 Answers  






Explain how do you print only part of a string?

0 Answers  


main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }

4 Answers  


How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

6 Answers   Adobe, Huawei,


the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38

1 Answers  


write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.

3 Answers  


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


How do you override a defined macro?

0 Answers  


Categories