Find the best solutions to your questions at Westonci.ca, the premier Q&A platform with a community of knowledgeable experts. Experience the ease of finding quick and accurate answers to your questions from professionals on our platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

In a FOR loop, if you declare a variable in the initializer, it exists only inside of the FOR loop.

Question 3 options:
True
False


Sagot :

Answer:

True

Explanation:

If you declare a variable in the initializer, it is local to the loop

In a FOR loop, if you declare a variable in the initializer, it exists only inside of the FOR loop is a true statement.

Can you declare a variable on a for loop?

It is often seen that variable which acts in control of a  for loop is required only for the aim of the loop and it cannot be used in another.

Conclusively, it is therefore likely to state  the variable inside the initialization part of the for loop.

Learn more about loop from

https://brainly.com/question/26568485