What is non linear array?

1 answer

Answer

1178408

2026-07-27 14:01

+ Follow

What is ARRAY, explain its typesARRAY: -

It is the combination of same data type or if same data is needed more then none time then we use array.

Types Normally there are two types of array.

(1) One dimensional array

(2) Two dimensional array

(1) One dimensional array: -

This array is in form a list (vertical\Horizontal) the data input output or process in one dimensional array with the help of loop.

The syntax of one dimensional array will be as:

Array name [strength]

For example

A [5];

The structure of above syntax will be as:

A (0)

A (1)

A (2)

A (3)

A (4)

(2) Two dimensional array: -

Two dimensional array is also called a table because it consist of rows and columns. The syntax of two dimensional arrays will be as:

Data type array name [rows] [columns]

For example

Int [3] [2];

The structure of above syntax will be as:

A [0] [0] A [0] [1]

A [1] [0] A [1] [1]

A [2] [0] A [2] [1]

The data input output are process in this array with the help of nested loop.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.