Computer Applications

What is an array? Write a statement to declare an integer array of 10 elements.

Java Arrays

ICSE 2012

10 Likes

Answer

An array is a structure to store a number of values of the same data type in contiguous memory locations. The following statement declares an integer array of 10 elements:

int arr[] = new int[10];

Answered By

5 Likes


Related Questions