answersLogoWhite

0

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.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

What is Linear and non linear list in data structure?

Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily..


What is linear data structure?

when elements are accesed or placed in contiguous memory location yhen data structure is known as linear data structure. stacks, arrays, queues and linklists are example of data structure. in non-linear data structure element are not placed in sequential manner. trees, graph are the ex. of non-linear data structure.


Is Array a linear data structure?

Conceptually, an array is a fixed size collection. However, a "ragged" array is not a linear one, nor a "matrix". Those 2 maybe thought of an array of arrays, ragged ones are arrays with different lengths, while matrices are arrays of the same length. Depends on the context of the question, an array is linear itself, regardless what kind of elements it contains. But there exists some arrays (I used math term on purposes) that are not "linear" (the ragged, the matrix, the 3-dimensional, 4-, etc.), thus, NOT all Arrays are Linear.


What is the main reason behind linked-list?

Linear list for example is array, linked list, stack, ... It is called linear because all elements in those data structures are in linear sequence. We have first and the last elements in the list. If there is N elements in list, we know that all elements are in such sequence na, na+1. Non-linear structures would be trees and graphs.


What is the simplest search technique to use to find an item in an array?

Linear search

Related Questions

What is Linear and non linear list in data structure?

Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily.. Linear : Traversal is linear .. ex: array,linked lists,stacks,queues NoN-linear: Traversal is not linear.. ex:trees,graphs imagine the situation of searching of particular element..in above scenarious..then u will understand easily..


Is inductor linear or non linear?

non linear


What is linear data structure?

when elements are accesed or placed in contiguous memory location yhen data structure is known as linear data structure. stacks, arrays, queues and linklists are example of data structure. in non-linear data structure element are not placed in sequential manner. trees, graph are the ex. of non-linear data structure.


Is planning linear or nonlinear?

Usually non-linear.Usually non-linear.Usually non-linear.Usually non-linear.


What are linear and non linear text?

Linear means in order Non-Linear means Organic


What is the running time of a linear search of an array?

Running time of a linear search is O(n)


Is a circle non-linear?

No, but it is non-linear.


Explain linear search with an example?

Sequential search of an object with in an array of objects is called as linear search.


What do an array and a stack have in common?

Both are linear data structures.


Will the plotted points 00 39 636 981 be linear or non linear?

Non-linear.


Is Array a linear data structure?

Conceptually, an array is a fixed size collection. However, a "ragged" array is not a linear one, nor a "matrix". Those 2 maybe thought of an array of arrays, ragged ones are arrays with different lengths, while matrices are arrays of the same length. Depends on the context of the question, an array is linear itself, regardless what kind of elements it contains. But there exists some arrays (I used math term on purposes) that are not "linear" (the ragged, the matrix, the 3-dimensional, 4-, etc.), thus, NOT all Arrays are Linear.


What is a non-example of linear?

It is possible to give an example of non-linear, but I have no idea what a non-example is. Is a non-example of linear a curve. That would be my first thought but not sure