what is the difference between arrays and linked list

Answer Posted / soumen goswami

1)Array has a static storage where as in linked list it is
dynamic.
2)To add some elements in an array is impossible since the
size is predefined.For the same case we can add elements at
the beginning,in the middle and also in the end.
3)To access the data from array is very easy while to access
data from linked list is some complex.

Is This Answer Correct ?    25 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does int main () mean?

535


When should a far pointer be used?

587


Why c is called top down?

613


List the variables are used for writing doubly linked list program.

1607


What are dangling pointers? How are dangling pointers different from memory leaks?

606






Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1752


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1245


which type of aspect you want from the student.

1691


What is stack in c?

595


What is difference between && and & in c?

559


What does %c mean in c?

637


What are logical errors and how does it differ from syntax errors?

641


What does typeof return in c?

627


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2639


Is python a c language?

538