On Thursday, 21 June 2012 at 05:54:32 UTC, Lars T. Kyllingstad wrote:
No. Many don't realize this, but "auto" doesn't actually stand for "automatic type inference". It is a storage class, like static, extern, etc., and it means that the variable stops existing at the end of the scope. It is, however, the default storage class, which is why it is useful when all you want is type inference. Even C has auto.

 Interesting. But doesn't auto for C default to int?

Reply via email to