Introduction to Array
Array is the sequential collection of memory variables having same data type.Or, Arrays are a data structure which holds multiple variables of the same data type. Whenever there is need to store a group of data of the same type in the memory, arrays are used. Normally variables are used to store specific values.,But Consider the case where a programmer needs to keep track of a number of students of a collage. So far, our initial attempt will be to create a specific variable for each student. It may seems like:-- int stud1 = 101; int stud2 = 232; int stud3 = 231; int stud4 = 234; this much of line , we will have to write to store the roll of only 4 students, then think how much line of codes we will have to write for 1000s of students??? It will be a typical problem for us. To overcome this situation we use the concept of array. Using array, The replacement of the above example using arrays looks like: int...