An Array in C programming
A n array is a collection of similar data type which is stored in a consecutive memory location in a single variable. It is derived data type in C, which is constructed from the fundamental data type of C language. The individual values in an array are called elements. If it contains int data type then all the data of the array must be int, if float then all the data must be a float. Each array element is referred by specifying the array name followed by one or more subscript with each subscript enclosed in square brackets. In C subscript starts at zero rather than one and each subscript must be expressed as a non-negative integer. The subscript is used to denote the size of the array. . Advantages of array Code Optimization: Less code is required, one variable can store numbers of value. Easy to traverse data: By using array easily retrieve the data of array. Easy to sort data: Easily sort data using the swapping technique. Random Access: With the help of an array index you ...