0% found this document useful (0 votes)
36 views

Introduction To Array

An array in C is a data structure that stores similar data types in contiguous blocks of memory. Arrays can only store the specified data type, such as integers in an integer array or floats in a float array. To declare an array, the syntax specifies the data type, array name, and size, such as int ar[size]; which declares an integer array named ar that can store size number of integer values.

Uploaded by

sunny
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)
36 views

Introduction To Array

An array in C is a data structure that stores similar data types in contiguous blocks of memory. Arrays can only store the specified data type, such as integers in an integer array or floats in a float array. To declare an array, the syntax specifies the data type, array name, and size, such as int ar[size]; which declares an integer array named ar that can store size number of integer values.

Uploaded by

sunny
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

Introduction to Array

Array in C is s type of data structure that can store similar type of data in
continous blocks of memory.
For example, an array of integer can only store integer type values and an
array of float type can only store float type values.

Declaring an array
Syntax:
Data type array_name [array size];
Data type data type will tell about which type of avalue array will
accept.
For example: int ar[ ], float bk[ ] etc.
In the above example ar is the integer type of array and bk is the float
type of array.

Array name An array has a specific name that you can give excet
special characters and reserved words.
Array size Array size tells about the size of the array that how many
variables it can store

You might also like