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


Please Help Members By Posting Answers For Below Questions

What are compound statements?

722


Write a program to swap two numbers without using the third variable?

694


What is #include stdio h and #include conio h?

682


what is the structure pointer?

1728


Why do we use static in c?

717






What is function pointer c?

682


Why is main function so important?

713


Are the expressions * ptr ++ and ++ * ptr same?

752


What is omp_num_threads?

688


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

5188


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2287


why do some people write if(0 == x) instead of if(x == 0)?

737


What was noalias and what ever happened to it?

689


What is static memory allocation?

716


How many data structures are there in c?

705