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 interests you the most about Social Psychology? What do you think is one of the most aggravating issues that our society faces nowadays?
Blank is the only level of American government that has the right to coin money.
Give 5 examples of circular motion and the source of the centripetal force that keeps them in motion.
what are the functions of communication?
If f(x)=x^2+1 and g(x)=3x+1 find 2*f(4)
The production of ____ was one of the first industries to be affected by the Industrial Revolution. (1 point) A. automobiles B.cotton cloth C.toys D.furnit
What is an "at risk" driver?
When two volatile liquids (X and Y) are mixed, the solution process involves 1. breaking the intermolecular X---X and Y---Y attractions, and 2. forming new X---
Find the value of X A. 60 B. 57 C. 29 D. 33
What Is The Ability Of The Body To Function Successfully And Efficiently During Physical Activity ? A)Exercise B)Physical Fitness C)Muscular Strength D) Fle