what is the difference between arrays and linked list

Answer Posted / najirabanu

Array has fixed length but linked list is not have fixed
length if u store a number in array means it must have
memory space according to the number but in linked list not
neccessary memory space according to the number
In linked list one node that contain pointer,that denoted
as addrs of another node
In array should not contain addrs of another node

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is return a keyword in c?

595


What is the difference between call by value and call by reference in c?

616


Where define directive used?

602


How do you view the path?

663


Why should I prototype a function?

630






What is variable declaration and definition in c?

499


Why we use stdio h in c?

575


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

635


How do I convert a string to all upper or lower case?

625


What are the 5 data types?

598


Give differences between - new and malloc() , delete and free() ?

605


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

624


Explain the difference between null pointer and void pointer.

663


Can a variable be both static and volatile in c?

604


Define the scope of static variables.

602