Syntactically I see that they loop indefinitely until a break statement is reached, but are they compiled to the same thing? Is the for slightly faster because it doesn’t have a condition to check? Aside from code readability, is there even a difference?
Syntactically I see that they loop indefinitely until a break statement is reached, but
Share
Given this input:
…you get this output:
Remarkably similar, I would say (identical, even).