I followed how to write octal literal but it seems not working:
int b = 0145;
Console.WriteLine(b); // prints 145
I'm trying to convert from octal to decimal, I tried hex and binary literals and it's working fine but not octal. What's the problem?