0% found this document useful (0 votes)
27 views1 page

Array Structure: Memory (Structure Size) Can Be Changed Dynamically

Array is a collection of homogeneous data that allocates static memory and accesses elements using indexes. Structure is a collection of heterogeneous data that allocates dynamic memory and accesses elements using the dot operator. While array element access is faster, adding or deleting elements in an array is more difficult than in a structure since existing data needs to be moved.

Uploaded by

saran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Array Structure: Memory (Structure Size) Can Be Changed Dynamically

Array is a collection of homogeneous data that allocates static memory and accesses elements using indexes. Structure is a collection of heterogeneous data that allocates dynamic memory and accesses elements using the dot operator. While array element access is faster, adding or deleting elements in an array is more difficult than in a structure since existing data needs to be moved.

Uploaded by

saran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Array Structure

Array is collection of homogeneous data.

Structure is the collection of heterogeneous


data.

Array data are access using index.

Structure elements are access using .


operator.

Array allocates static memory.

Structures allocate dynamic memory.

Array element access takes less time than


structures.

Any array behaves like a built-in data


types. All we have to do is to declare an
array variable and use it.

Structure elements takes more time than


Array.

An array is a derived data type .

structure, first we have to design and


declare a data structure before the variable
of that type are declared and used.

Memory (array size) is fixed

A structure is a programmer-defined data


type

7.

Adding/deleting an element in the array


is comparatively

Memory (structure size) can be


changed dynamically

4
5

difficult since the data already present in Adding/deleting takes less time than in
the array needs
arrays
to be moved

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy