¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Arrays

ShadowTajun Inglés 1 página

Contenido del apunte (1)

Página 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

Información

Descripción
Apunte sobre Arrays, creado por ShadowTajun el 20/03/2014.
Creado por
ShadowTajun
Visitas
21
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?