GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  DRDO

 Print  |  
Question:  What is an array? What is the advantage of linked-list over array?



September 09, 2008 09:57:30 #8
 yogesh.sharma1991   Member Since: September 2008    Total Comments: 2 

RE: what ia an array ? advantage linked-list over arry?
 

Array:- Array is an collection of similar data types.

Advantage of link list:

1) First in the Array is compile time address binding. It means it allocate memory space for an array at compile time. So we can not add more element than the size of array at run time. In array size is fixed so if we use memory less than size then space will be wasted. In another way Linked list is Run time address binding. In linked list there is no waste of memory. User can use memory as he needed. In another way linked list is collection of non-similar data types. So it can stores non-similar data.

     

 

Back To Question