Logo
Search
Search
View menu

Array

Presentations | English

Array? What is the purpose of Array in Data structure? The Array is the simplest data structure where each data element can be randomly accessed by using its index number. The memory address of the first element of an array is called the first address, foundation address, or base address. It is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key. Each item, or value, in an array, is called an element, and each element is accessed by its integer index. When we initialize an array, we get to choose what type of data it can hold and how many elements it can hold. The number of elements an array instance can hold is stored in its final int field called length. Arrays are classified as Homogeneous Data Structures because they store elements of the same type. They can store numbers, strings, Boolean values (true and false), characters, objects, and so on. There are three different kinds of arrays: indexed arrays, multidimensional arrays, and associative arrays. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.

Picture of the product
Lumens

Free

PPT (61 Slides)

Array

Presentations | English