Nuacht
Pre-standard C++ had quirky scope behavior similar to your first example - variables declared specifically in a for loop's initializer statement remained in scope through the end of the block.
Tá torthaí a d'fhéadfadh a bheith dorochtana agat á dtaispeáint faoi láthair.
Folaigh torthaí dorochtana