Ask Question
2 December, 18:54

Define an array of the length 6 with the elements of WORD type. Initialize the first and the last of them with the same value of your choice; leave the remaining four uninitialized.

+2
Answers (1)
  1. 2 December, 19:29
    0
    string words[6];

    words[0]="humming";

    words[1]=words[0];

    Explanation:

    The above statement declares an array of size 6 which can store elements of type string or word. Then I have initialized the first and second elements with the word humming and the rest of the places in the arrays are uninitialized.

    You have to include the header file string so that this array could work otherwise it will not.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Define an array of the length 6 with the elements of WORD type. Initialize the first and the last of them with the same value of your ...” 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