Introduction: An array is an index collection of a fixed number of homogeneous data elements. The main advantage of the array is, we can represent a huge number of values using a single variable. So, the readability of the code will be improved. But the main disadvantage of an array is, fixed in size. i.e. Once we create an array there is no chance of increasing or decreasing the size based on our requirement. Hence, to use the array concept compulsory we should know the size in advance, which may not possible always. Array Declaration: There are three ways to declare the one-dimensional array. They are as follows int[] x; int []x; int x[]; All above are valid, but int[] x; is recommended, because variable name clearly separated from the type of array. At the time of declaration, we can't spec