difference between the array and linked list
general difference related to memory

Answers were Sorted based on User's Feedback



difference between the array and linked list general difference related to memory..

Answer / shravan katta

array allocated statically
linked list dynamic memory allocation
in the linked list have to remove the node at run time
but can't remove the array node

Is This Answer Correct ?    7 Yes 0 No

difference between the array and linked list general difference related to memory..

Answer / dr. sanyasi naidu pasala

In array memory will be allocated during compilation, where as in linked list memory will be allocated during run time. In array memory size will be depends on size of the array. In linked list memory will be allocated according to the user requirement. In array memory will be allocated in continuous memory locations but in linked kist memory will be allocated at random locations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance

8 Answers  


Explain what is the use of a semicolon (;) at the end of every program statement?

0 Answers  


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

0 Answers  


What does. int *x[](); means ?

0 Answers   Wilco,


Linked lists -- can you tell me how to check whether a linked list is circular?

0 Answers  






What language is windows 1.0 written?

0 Answers  


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


Is it fine to write void main () or main () in c?

0 Answers  


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

0 Answers  


void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }

5 Answers  


What are integer variable, floating-point variable and character variable?

0 Answers  


There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


Categories