Ask Question

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. 20 August, 14:17
    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 & 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