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

Which sentence contains a prepositional phrase that acts as a modifier? a. Drag the cursor over. b. It isn't healthy to have obsessions. c. The new supermark
Who was assassinated during the visit to Sarajevo in Bosnia
3x-2 less than or equal than 7
Predict what kind of energy process happens when Lye, NaOH(s) is put in water and the water gets hot
Of the following choices, the best conductor is _____. iron copper steel rubber
Which of the following describes Japan from the late 1800s to the 1930s? It gradually gained economic and military power. Its economy grew rapidly. It never
Is 0.313131 (repeating) a rational number?
What type of joint allows us to turn our head?
When measuring current, always place the meter in a. series with the circuit. c. the highest DC volts position. b. the highest AC volts position. d. paralle
a) NaClO3 -> NaCl + O2------------------------DESCOMPOSICION b) HNO3 +Fe -> H2 + Fe (NO3)2------------SIMPLE SUSTITUCION c) Kl + Pb (NO3)2 -> Pbl2 +