+ 3
Semicolon is a legitimate statement called null statement * that means "do nothing". Since the for loop executes a single operation (which could be a block enclosed in {}) semicolon is treated as the body of the loop, resulting in the behavior that you observed
14th Nov 2017, 2:17 PM
MsJ
MsJ - avatar