Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between arrays and linked list

Answer Posted / shruti

the main differance between arrays and linked list is:

In array we follow static memory allocation.
i.e we assign memory to the particular element in advance.


in linked list -> dynamic memory allocation.
i.e we assign memory to the particular element at run-time..


hence we reserve only the amount of memory which is
required.

there is no problem of memory shortage or wastage, in
linked list. which we very frequently come accross in the
arrays..

Is This Answer Correct ?    137 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c header files?

1037


pierrot's divisor program using c or c++ code

2286


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1128


What is static and auto variables in c?

1143


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2013


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

2233


Disadvantages of C language.

1164


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

1107


Explain goto?

1207


What is extern variable in c with example?

1056


Why are all header files not declared in every c program?

1150


What is the difference between class and object in c?

1242


Is there a way to switch on strings?

1130


What is an arrays?

1139


Why string is used in c?

1049