Ask Question
15 March, 18:38

In a single statement: declare, create and initialize an array named a of ten elements of type int with the values of the elements (starting with the first) set to 10, 20, ..., 100 respectively.

+1
Answers (1)
  1. 15 March, 21:16
    0
    int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};

    Explanation:

    //written in java

    The left side int[] a Declare a variable (a) which is of type Integer array (int[]).

    The equal sign (=) assign the right side to the left side.

    The right side initialize the integer array (a) with ten element.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In a single statement: declare, create and initialize an array named a of ten elements of type int with the values of the elements ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers