C Programming Arrays Introduction

So far we were using the single variable name for storing one data item. If we need to store the multiple copies of the same data then it is very difficult for the user.

Thoughtful Example of Array

Suppose we have to store the roll numbers of the 100 students the we have to declare 100 variables named as roll1,roll2,roll3,…….roll100 which is very difficult job. Concept of C Programming Arrays is introduced in C which gives the capability to store the 100 roll numbers in the contiguous memory which has 100 blocks and which can be accessed by single variable name.

C Programming Arrays is the Collection of Elements

C Programming Arrays is collection of the Elements of the same data type.