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 is it called when a behavior is emitted more often in the presence of a particular discriminative stimulus than in its absence?
Luther lays out a round parachute measure it and calculates that it has a circumference of 2.512 yards what’s the parachute diameter
Jack is writing a report about a space probe that the National Aeronautics and Space Administration (NASA) is building. Jack decides to use styles in his report
A 26 L flask at 224 K and 19 Torr contains nitrogen. What mass of nitrogen is present?
Write a paragraph explaining the role of the United States Constitution in American Democracy. What is its purpose?
Tell whether 3(x - 3) + 3 =2x - 4 has one,zero or infinitely soulutions
2x + y = 10 2x - y = 6
Why was the electoral college created?
According to the fundamental theorem of algebra, how many roots exist for the polynomial function? F(x) =4x^5-3x
What is 3/4 * 2 1/2 * 4/5