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 difference between array and structure?

Answer Posted / vinay

Array -
* Memory (array size) is fixed
* Accessing an element in array takes constant time. E.g. -
5th element in an array can be accessed as array[4] i.e.
searching/accessing an element in array takes comparatively
less time than in structures.
* Adding/deleting an element in the array is comparatively
difficult since the data already present in the array needs
to be moved
Structure -
* Memory (structure size) can be changed dynamically
* Accessing an element in a list takes more time
comparatively since we need to traverse thro the list
* Adding/deleting takes less time than in arrays

Is This Answer Correct ?    208 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are reserved words?

1054


Explain high-order and low-order bytes.

1057


What is calloc()?

1040


Explain how can I right-justify a string?

1007


In which layer of the network datastructure format change is done

1844


What is the most efficient way to count the number of bits which are set in an integer?

1016


Explain output of printf("Hello World"-'A'+'B'); ?

1447


What are the keywords in c?

1088


In a header file whether functions are declared or defined?

1095


What is structure pointer in c?

1003


What does void main () mean?

1192


string reverse using recursion

2395


How a string is stored in c?

1030


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1217


What is c standard library?

1158