nnyambibi9118 nnyambibi9118
  • 14-09-2019
  • Computers and Technology
contestada

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.

Respuesta :

ExieFansler ExieFansler
  • 20-09-2019

Answer:

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.

Answer Link

Otras preguntas

What present day countries control territory that was controlled by the Seleucid empire?
How did people use constellations to decide when to plant crops
Which of the following is NOT a part of the setting? A. TimeB. LocationC. MoodD. Sequence
when andrew johnson was in the office were there any wars going on? if so,wich one?
The Computer Store has reduced the price of a computer by 15%. What is the original price of the computer if the sale price is $1275?
What is the empirical formula of a compound that is 79.8% carbon and 20.2% hydrogen?
the product of 2 whole numbers is 10,000 if neither number contains a zero-digit , what are the 2 numbers ?plz help! its due tomorrow!
what is 14b+3a=91?I need to find the values of  a and b please
Explain why Britain's policy of appeasement failed to prevent the German expansion from 1937 to the takeover of Czechoslovakia in March 1939.
Explain how you would find the base area of a rectangle prism if you know the volume and the height