O'Reilly logo
  • Roberto Orsini thinks this is interesting:

Variables defined in the condition are created and destroyed on each trip through the loop.

From

Cover of C++ Primer, Fourth Edition

Note

They are destroyed, too.