ethanspencer8254 ethanspencer8254
  • 18-07-2019
  • Computers and Technology
contestada

int alpha [5];

int j;
alpha [0] = 2
for ( j = 1; j < 5; j++)
alpha [j] = alpha [ j - 1] + 3;
3. What is the value ofalpha[4] after the code aboveexecutes?

a.

5

c.

11

b.

8

d.

14

Respuesta :

demimurray573
demimurray573 demimurray573
  • 28-07-2019

Answer:

D - 14

Explanation:

Each time the program executes an iteration of the for-loop, it works out the current element by adding 3 to the previous element.

alpha[0] = 2

+3

alpha[1] = 5

+3

alpha[2] = 8

+3

alpha[3] = 11

+3

alpha[4] = 14

Answer Link

Otras preguntas

what is an investigative question for this experiment for an Ester​
What is the area of the composite figure? Enter your answer as a decimal in the box.
i need help on this zearn assignment yo
Amari is using iodine while nonsterile compounding which supply item should he avoid using
What is the rate of reaction in terms of C in the following reaction: A + B → 2 C.
Find the area under the standard normal curve within 1.8 standard deviations of the mean. Round the solution to four decimal places, if necessary. The answer is
could someone pls help me w this?? i was never taught this stuff..
DJ is purchasing his mother her favorite perfume for her birthday. It comes in the shape of a square pyramid, and so does its lid! What is the total square inch
It is urged that the use of the masculine pronouns he, his and him in all the constitutions and laws, is proof that only men were meant to be included in their
on common lit smog smog go away…dont come back another day what are the answers to all the assessment questions