Programming with C – Arrays- Lecture5

Array is a linear list of homogeneous elements, stored at successive memory locations in consecutive order.

C programming language provides a data structure called the array, that can store a fixed size sequential collection of elements of same data type.

An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. For example, if your class strength is 50 then your roll numbers are rollnumber1, rollnumber2, rollnumber3 …… rollnumber50.

Instead of declaring individual variables, such as rollnumber1, …, and rollnumber50, you declare one array variable such as rollnumb.

Continue reading “Programming with C – Arrays- Lecture5”