Showing posts with label One dimensional array. Show all posts
Showing posts with label One dimensional array. Show all posts

Write down about the declaration of one dimensional array.

Declaration of one dimensional array : Like any other variable, arrays must be declared before they are used. The general form of array declaration is,

Write down about the three types of arrays.

One dimensional array: 

A list of items can be given one variable name using only one subscript and such a variable is called a one dimensional array.

              Example : int number[5];

Here in the example, 5 value of the variable number can be kept under the single variable number.