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

please explain every phase in the "SDLC" in the dotnet.

0 Answers  


int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 Answers   HCL,


Difference between fopen() and open()?

3 Answers   Aricent,


Is it possible to execute code even after the program exits the main() function?

0 Answers  


What is volatile variable in c?

0 Answers  






c program to manipulate x=1+3+5+...+n using recursion

2 Answers   Wipro,


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

0 Answers  


WHAT IS ABSTRACT DATA TYPE

4 Answers   Wipro,


What is the right way to use errno?

0 Answers  


What is variables in c?

0 Answers  


what is the advantage of software development

1 Answers  


A MobileNumber is a VIP number if it satisfy the following conditions. The operator should be Vodafone. Atleast one 0 (Zero) should be exist in mobile number. The number should not end with 8. The single digit sum of all the digits in the number should be equal to 9. For example if the number is 9876543210, the sum is 9+8+7+...+1+0 = 45. Sum of 4+5 = 9. Write a method: private boolean isVIPMobileNumber(String mobileNum, String operator) mobileNum phone number operator mobile operator as bsnl, Vodafone

1 Answers  


Categories