...endl;
writes the value "14" to the console, since a leading zero indicates an octal number (i.e., the decimal value of the constant is 1*8+6 = 14, rather than 1*10+6 = 16 as for a decimal number). The following for example
int i1 = 018;
will cause a compile error, since...