What's the difference between a linked list and an array?

Answer Posted / noopur

We can allocate memory DYNAMICALLY in linked list where as
in array static allocation of memory is there. In array
contiguous memory allocation procedure is there where as in
linked list we can allocatememory where we want.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare pointer variables?

695


Is c call by value?

617


Explain how can you avoid including a header more than once?

609


What is atoi and atof in c?

626


Write program to remove duplicate in an array?

606






What is #include stdlib h?

626


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1745


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2463


Explain what are binary trees?

618


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

628


What is the significance of c program algorithms?

690


Why static is used in c?

629


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

666


What is a void pointer? When is a void pointer used?

640


How can you convert integers to binary or hexadecimal?

626