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

Which chemical equation best describes the reaction of potassium metal with fluorine gas to form solid potassium fluoride? A. K(s) + F2(g) → KF2(s) B. K(s) + F(
what we need to become success
If X is the set of negative numbers and Y is the set of positive numbers, then the union of X and Y and 0 is the set of (A) all real numbers (B) all integers (C
what do I do to figure out this problem:3x+8=26+x
What is the answer to 12-2x6+2/2
What's the other term for: one who overindulges in food and drink
What's the word for to talk on and on pointlessly, without clear direction
which designer started as a fashion illustrator before focusing on industrial design?
How do we use the Pythagoras theorem in "everyday life".
What is the highest mountain on each continent?