That's something old people do. It's something carried over from C I think, C++ supports it without endorsing it. It's probably best not to use it as it doesn't change the scope of the variable at all, and will only confuse people who haven't seen it before. Where are you learning C++ that this is what they are showing you to do?