difference between the array and linked list
general difference related to memory
Answer Posted / 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 View All Answers
What are compound statements?
Write a program to swap two numbers without using the third variable?
What is #include stdio h and #include conio h?
what is the structure pointer?
Why do we use static in c?
What is function pointer c?
Why is main function so important?
Are the expressions * ptr ++ and ++ * ptr same?
What is omp_num_threads?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
why do some people write if(0 == x) instead of if(x == 0)?
What was noalias and what ever happened to it?
What is static memory allocation?
How many data structures are there in c?