Ask Question
1 December, 02:14

Declare an array reference variable, week, and initialize it to an array containing the strings "mon", "tue", "wed", "thu", "fri", "sat", "sun" (in that order).

+4
Answers (1)
  1. 1 December, 04:35
    0
    Following are the code.

    //declaration of String data type array variable

    String week[] = {"mon", "tue", "wed", "thu", "fri", "sat", "sun"};

    Explanation:

    Following are the code that is implemented in the programming language:

    Here, we declare the String data type array variable and assign values in it i. e., week and the following array hold only the same type of elements. Array is the data type that holds the same type of elements at a time and it is also used as the data structure.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Declare an array reference variable, week, and initialize it to an array containing the strings "mon", "tue", "wed", "thu", "fri", "sat", ...” 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