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

Answer this question!
Use the standard normal distribution to find P(-2.25 < z < 1.25)
Solve -4(2x-1)=-6(x+2)-2
Among the general standards for quota and preference systems that seem to be emerging from recent supreme court rulings is that
What is the perimeter of the triangle below? Round to the nearest hundredth.
Please help me with this answerThere were 44 fans at Ethan's basketball game. The home team had 14 more fans than the visiting team. How many fans did the home
Martha needs 28 strawberries for every 4 smoothies she makes. Complete the table using equivalent ratios
hi thanks if u can help make it short and sweet pleaseee thxxx
John is going on a trip and the country he is traveling to uses the Celsius scale. He is curious about converting Celsius temperatures to Fahrenheit. John deter
I need help with math homework