Inspired by a confusing piece of code, I have a small question regarding assigning a value to an integer:
#include <iostream> #include <cstdio> int main() { int i = 0101; std::cout << i << "\n"; }
And the way out was 65, and I have no idea where it came from 65? Any idea?
source share