0 is octal!

I'm currently enhancing one of my source analysis tools and have had occasion to revisit the parsing of numeric literals in C, C++, C#, D and Java. Working my way through the requisite parts of the C and C++ standards I learned that the literal 0 is actually an octal, something that's probably not that widely known.


September 23, 2010
URL:http://www.drdobbs.com/jvm/0-is-octal/228700312

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.