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

Al washed a car in 6 minutes. Fred washes the same car in 8 min. How long dies it take Al and Fred to wash the car together?
Which of the following rivers is the world's busiest waterway ?
What is the lateral area of the rectangular prism? Assume the prism is resting on its base. A. 135 in2 B. 270 in2 C. 300 in2 D. 310 in2
conversation between Hitler and gandhi
Which word is an interjection commonly used in advertising?
What is the coefficient of y in the expression 12+3y-2x?
Find an equivalent ratio for 22/55 and then write the proportion
Horace read 160 pages in 4 hours. How many pages can he read in 6 hours??
The number of waves that pass a particular point in a unit of time is called the __________ of the waves. (a) rarefaction (b) compression (c) amplitude (d) freq
What is the coefficient of y in the expression 12+3y-2x?