Ask 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 (starting with the first) set to 10, 20, ..., 100 respectively.

+4
Answers (1)
  1. 23 May, 02:09
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers