GoConqr has a new look! Let us know what you think.

Notes

Arrays

ShadowTajun English 1 page

Content of the notes (1)

Page 1

the number of containers making up an array is fixed when it is created.

each container within the array holds the same data type.

In programming terms, an array is made up of a defined number of ‘elements’, each element is of the same data type.

A series of variables of a single data type can be replaced with an array.

// declares an array of integers int[] myArray;

// declares an array of integers

int[] myArray;

The above statement declares an array of integers named myArray.You need to allocate enough space in the computer memory to store the 3 integers that make up the array.

// allocates memory for 3 integers

myArray = new int[3];

New Page

Information

Description
Note on Arrays, created by ShadowTajun on 20/03/2014.
Created by
ShadowTajun
Views
21
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?