Вы находитесь на странице: 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

Вам также может понравиться