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

Understanding One-Dimensional Arrays

An array is a linear and homogeneous data structure that stores similar types of elements continuously in memory under one variable name. It is considered a composite data structure as it can hold multiple elements in a sequence. The declaration of a one-dimensional array involves specifying the data type, variable name, and size in square brackets, as shown in the example 'int a[5];'.

Uploaded by

tiwarivaibhav990
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)
23 views1 page

Understanding One-Dimensional Arrays

An array is a linear and homogeneous data structure that stores similar types of elements continuously in memory under one variable name. It is considered a composite data structure as it can hold multiple elements in a sequence. The declaration of a one-dimensional array involves specifying the data type, variable name, and size in square brackets, as shown in the example 'int a[5];'.

Uploaded by

tiwarivaibhav990
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

31st JAN 2022

Array
An array is a linear and homogeneous data structure. An array permits homogeneous data. It means that similar
types of elements are stored continuously in the memory and that too under one variable name

More than one element is stored in a sequence, so it is also called as a composite data structure.

Array Declaration

Declaration of a one-dimensional array can be done with data type first, followed by the variable name and
lastly the array size is enclosed in square brackets.

Example: int a[5];

One dimensional array ko declare kiya hai.

Data type array name[size];

You might also like