answersLogoWhite

0

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

12y ago

What else can I help you with?

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.


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

Explain different types of ability


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 ) ); } }


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


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


What are the different types of computing and explain them?

explain various categories of computing environment