For loop exceptional behaviour

Revision en1, by gXa, 2015-08-02 15:55:30

Why this compiles: Plz guide me on this:

int main() {

for(int i = 0; 0; i++) {

cout<<"H"; }

}

Can u elaborate the working of this code?

Tags for loop

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English gXa 2015-08-02 15:55:30 200 Initial revision (published)