Ask Question
26 September, 02:44

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. 26 September, 03:17
    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 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