Ask 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 choice; leave the remaining four uninitialized.

+5
Answers (1)
  1. 9 May, 08:33
    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?
Find 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 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