answersLogoWhite

0

An array is an array. It is simply an arrangement of one (usually two) or more objects located sequentially in memory. You can address them with one or more indicies or pointers as desired, i.e. you can treat them as a list, as a rectangular matrix, as a cubical thing, or more, but they are still, in memory, a compact list of objects, one after the other. You can have arrays of simple scalar variables, of structures, of classes, even of other arrays, whatever you want, to any arbitrary complexity, but it still comes down to "how many do you want?" - "here they are - all next to each other".

There is a tendency, for instance, to think that an array of char, because it looks like a string, is different (philosophically) than an array of double. It is not. We treat it as string by convention. It is still an array, and each character is simply a different element of the array.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Explain different types of inheritance of object oriented programming?

== ==


Explain the Different types of array?

one dementional array and two dementional array


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.


What are different data types used in 8087 programming?

Abstract,etc


What are the different types of array explain with examples?

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];//declarationarr[7] = 7;//initialization2) 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 arrayint arr[5][5][5];//three dimensional array


What kind of programming is on Unimas?

UniMas is a television network that offers viewers different types of sports programming, talk and reality show programming and acquired programming. There are references online to former programming, upcoming programming and current programming for UniMas.


What are the different types of computing and explain them?

explain various categories of computing environment