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

Calculate 10P7. A. 720 B. 70 C. 3 D. 604,800
calculate the pH of 0.50M H2S
The human body is made up of: nucleus absorption cells neurons
What problems could arise when too many people living in a small area?
a steel ball has a volume of 1500cm3. the density of the ball is 95g/cm3. work out the mass of the ball in kg
Solve the equation by completing the square. -9n^2+79+=-18n
50 kg of grade a coffee beans is mixed with 100 kg of grade b coffee beans. what will be weight in kg of grade b coffee beans in 60 kg of mixture?
What are the unspoken rules of Pencey and of New York City in the Catcher in the Rye?
Who were the Molly Maguires? Select one: a. Irish coal miners b. Russian strikebreakers c. German steelworkers d. Chinese railway workers
Why were absolute monarchies more common Eastern Europe than in Western Europe? A) The Church, which wanted to ban absolute monarchies, lost influence in Easter