answersLogoWhite

0


Best Answer

There are two main types of array:

1) Single dimensional array: These are arrays for which only one index is required to access the element stored in an array. They are stored in a contiguous memory location.


Eg:


int arr[10];//declaration

arr[7] = 7;//initialization


2) Multidimensional array: These are arrays for which more than one index is required to access the element stored in a specific location in the array. These are stored in a contiguous memory location row-by-row.


Eg:


int arr[5][5];//two dimensional array

int arr[5][5][5];//three dimensional array

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

An ordered array is simply an array where all elements are in sorted order:

int a[] = {3, 6, 9, 10, 15, 21}; // ordered array

An array can either be initialised with ordered elements or the elements may be sorted after initialisation. When inserting new elements into an ordered array, the order must be maintained.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Explain the array and linked list implementation of stack

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Integer(int)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different types of array explain with examples?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain the Different types of array?

one dementional array and two dementional array


Class 9th kinematics chapter full answer give you?

explain different types of motion give two examples


Why array is differ from structure?

An array is an aggregate of the same type. A structure is an aggregate of different types.


How do you add different logo to my page?

if (class_exists('MultiPostThumbnails')) { //$types = array('post', 'page'); $types = array('page'); foreach($types as $type) { new MultiPostThumbnails(array( 'label' => 'Header Banner', 'id' => 'secondary-image', 'post_type' => $type ) ); } }


Explain characteristics of different types of organsational structures in management function and behavior?

Explain different types of ability


What is the difference between an array and structure?

An array is a collection of related data elements of same type.Structure can have elements of different types.An array is a derived data type.A structure is a programmer-defined data type.A struct can contain multiple data types, whereas an array can not.


What are the different types of ISAR System- Explain?

the different types of ISAR System


What distinguishes an array from a structure?

Am array is an aggregate of elements that must be of the same type. A structure is an aggregate of elements (members) that can be of different types.


Explain the types of operating system in detail?

The different types of operating systems are 1) DOS 2)Windows 3)ubuntu 4)Linux 5)unix


What are some examples of different types of metals?

Examples of Metals:TinCopperAluminumNickelSteelIronMercuryZincSilverGoldMagnesiumLeadPlatinumPalladiumMolybdenum


Types of departmentalisation?

with examples discuss the different types of departmentalisation


Mountains plains and deserts are examples of different types of what?

I think their different types of landforms