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 / chaudhary paresh

- Array elements are homogeneous. Structure elements are of
different data type.
- Array allocates static memory and uses index / subscript
for accessing elements of the array. Structures allocate
dynamic memory and uses (.) operator for accessing the
member of a structure.
- Array is a pointer to the first element of it. Structure
is not a pointer
- Array element access takes less time in comparison with
structures.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are linked lists in c?

1083


What is wrong with this code?

1125


What is omp_num_threads?

1033


What is the difference between array and linked list in c?

1077


How can I sort a linked list?

958


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1720


Can a void pointer point to a function?

967


If the size of int data type is two bytes, what is the range of signed int data type?

973


what is different between auto and local static? why should we use local static?

1073


What is the use of header?

1046


Is sizeof a keyword in c?

913


The statement, int(*x[]) () what does in indicate?

1077


Why malloc is faster than calloc?

1009


What is sizeof array in c?

983


Here is a neat trick for checking whether two strings are equal

964