difference between the array and linked list
general difference related to memory
Answers were Sorted based on User's Feedback
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 |
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 |
How do we swap or interchange any 2 numbers without using Temporary variable...Anybody can pls answer it.. Thanks in Advance
Explain what is the use of a semicolon (;) at the end of every program statement?
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.
What does. int *x[](); means ?
Linked lists -- can you tell me how to check whether a linked list is circular?
What language is windows 1.0 written?
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?
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
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
What are integer variable, floating-point variable and character variable?
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?