Yeah, that would give you an error.
--- Update ---
The reason you are seeing B (even though i'm pretty sure it would be followed by an error) is because a for loop without proper brackets will...
Type: Posts; User: Chris.Brown.SPE
Yeah, that would give you an error.
--- Update ---
The reason you are seeing B (even though i'm pretty sure it would be followed by an error) is because a for loop without proper brackets will...
Kevin is correct, total syntax error. Evil teacher.
Anyways, you are correct to think it would be D if there was no syntax error. Each pass prints i and i+1 then adds 1 to i.
Pass1: 0 1
Pass2: 1...