what is the difference between arrays and linked list

Answer Posted / yoga

Both are nothing but the data structures where in arrays
data can be accessed using subscript but in linked list
data can be accessed by the pointer present in its previous
node...

Is This Answer Correct ?    59 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include conio h?

598


Can we declare variables anywhere in c?

582


How is a null pointer different from a dangling pointer?

559


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2253


What should malloc() do?

649






Write a code to generate a series where the next element is the sum of last k terms.

740


What is c++ used for today?

671


What are the storage classes in C?

627


Describe newline escape sequence with a sample program?

660


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

721


What is cohesion and coupling in c?

593


What are 3 types of structures?

596


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

633


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2030


Explain the use of fflush() function?

628