Ariellelyn9593 Ariellelyn9593
  • 03-07-2019
  • Computers and Technology
contestada

You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.

a.
equal sign

b.
comma

c.
period

d.
semicolon

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

comma

Explanation:

The for loop is used to execute the specific statement again and again until the condition is false.

The syntax:

for(initialization;condition;increment/decrement)

{

  statement;

}

In the initialization, we an initialize more than one variable by using the 'comma' as separator.

similarly for condition and increment/decrement part as well.

for example:

for(int x = 0,y = 0;x<5,y<5;x++,y++)

{

  statement;

}

we can used as many as possible by using comma

Answer Link

Otras preguntas

What percent of 18 is 24? Plssss help me
Which style typically has red-tiled roofs, stucco siding, arched entryways and windows, and decorative tiles by the windows and doors
Which statement below best explains how the Amber Road got its name
A diver is 4 meters below sea level. What integer represents the location of the diver?
Describe 3 reasons why the United States entered world war 1
an excess of births over deaths is called A)natural increase B)natural decrease C)population explosion D)excessive births
When did The Crown Tower get rebuilt?
the sum of the first nine terms of an arithmetic series is 162, and the sum of the first 12 terms is 288. Determine the first five terms of the series.
Determine whether the inverse of f(x)=2x2−5 is a function. Then find the inverse.
To make your delicious fruit cake you need 2 1/4 pounds of fruit. You plan to make 5 1/2 fruit cakes. How much fruit do you need?