Variable (I) is defined in the loop, so I in the loop body is not visible, it is purple, the book says, but I watched three or four people on the Internet to explain, I feel from their explanation should be (in cycle in vitro invisible, because I was defined in the loop, so in cycle in vitro is equivalent to no I this variable, in circulation in vitro printf (" % d \ n ", I) will be an error, is not visible outside the loop) don't know what I think right
CodePudding user response:
refer to the original poster maxiangyu_ response: variable I define the loop statement, so I in the loop body is not visible, it is purple, the book says, but I watched three or four people on the Internet, I feel from their explanation should be (in cycle in vitro invisible, because I was defined in the loop, so in cycle in vitro is equivalent to no I this variable, in circulation in vitro printf (" % d \ n ", I) will be an error, is not visible outside the loop) don't know what I think right is nothing wrong with Cycle in vitro invisible what happened CodePudding user response:
reference 1st floor lin5161678 response: Quote: refer to the original poster maxiangyu_ response: Variable I defined in the loop, so I in the loop body is not visible, it is purple, the book says, but I watched three or four people on the Internet, I feel from their explanation should be (in cycle in vitro invisible, because I was defined in the loop, so in cycle in vitro is equivalent to no I this variable, in circulation in vitro printf (" % d \ n ", I) will be an error, which is not visible outside the loop) don't know what I think right is nothing wrong with Cycle in vitro invisible how That will do, that should be written in the wrong, you look at the pictures, books are not visible in circulation CodePudding user response:
Variables defined in the loop, its scope is circulating in the body, therefore, recycling is invalid, CodePudding user response:
The reference 3 building self-confidence boy reply: variables defined in the loop, its scope is circulating in the body, therefore, recycling is invalid, Ok, that I know, thank you CodePudding user response:
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html