Arvind Kurmi wrote:Why every times 16 is display? can any one explain me this?
Did you expect something else? For example, did you expect that it would display "0x10" when you initialize the integer with 0x10?
Note that decimal, octal and hexadecimal are just different ways to represent numbers. But the number itself it just a number and nothing more: it does not have some property that says that the number is decimal, octal or hexadecimal. In other words, the variable doesn't know anything about how you wrote it in your source code.