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 to Throw some light on the splay trees?
how to find that no is int or float?
How. To pass the entrance test
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
write a program to display all prime numbers
write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..
What is the difference between char array and char pointer?
Binary tree traversing
What is a constant and types of constants in c?
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.
Write a program to find the smallest and largest element in a given array in c language
#include<std.h> int main() { char *str[]={"Frogs","Do","Not","Die","They","Croak!"}; printf("%d %d\n",sizeof(str),strlen(str)); ...return 0; } what will the output of the above program?