Ask Question
26 June, 05:22

In a for loop, the iterator variable is used for keeping track of what?

How many for loops are running in a program

The number of objects in a program

The names of the variables used in a program

How many times the for loop has iterated

+4
Answers (1)
  1. 26 June, 05:35
    0
    How many times the for loops has iterated.

    When declaring a for loop, you can declare the iterator variable, choose a condition in which the for lool exits, and choose how the iterator variable changes after each iteration.

    Here is an example in C + + which prints the numbers 1 to 10.

    for (int i = 1; i < = 10; i++)

    std::cout << i << "/n";
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In a for loop, the iterator variable is used for keeping track of what? How many for loops are running in a program The number of objects ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers