mathews7523 mathews7523
  • 06-03-2020
  • Computers and Technology
contestada

Declare an array named a of 10 elements of type int and initialize the elements (starting with the first) to the values 10, 20, ...., 100, respectively.

Respuesta :

Limosa
Limosa Limosa
  • 07-03-2020

Answer:

int a[10] = {10,20,30,40,50,60,70,80,90,100};

Explanation:

In the above statement, we declare the integer data type array variable that is 'a' then, pass its index value that is 10 which means it contains only 10 values and initialize the components of the array variable that is starting with 10 and end at 100 in the difference of 10. So, the following declaration is correct according to the statement.

Answer Link

Otras preguntas

Use (<, >, =) to compare 2⁄3 and 3⁄4. A. 2⁄3 = 3⁄4 B. 2⁄3 > 3⁄4 C. None of the above D. 2⁄3 < 3⁄4
Discuss the manufacturer of HNO3 and H2SO4 by Harbers process
Malia bought 14 cans of cat food. Each can weighs 8 ounces. How many total ounces of cat food did she buy?
Cual es la diferencia entre un volcán de verdad y uno hecho casero
do snakes have slimy skin true or false
3 less tgan the quotient of 20 and x
Discuss the manufacturer of HNO3 and H2SO4 by Harbers process
Research has found that the body's immune system can attack your own body parts, leading to all but which of the following conditions?
Which type of character provides an obstacle to the protagonist
a rectangular lot is 100 ft by 150 ft. determine the area of this lot in square meters.