Ask Question
16 July, 19:10

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

+2
Answers (1)
  1. 16 July, 22:28
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers