Ask Question
26 October, 02:42

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).

+1
Answers (1)
  1. 26 October, 04:23
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers