Computer Science, asked by daro, 1 year ago

What is the value of the following integer literal?

Answers

Answered by cyrusbishop
0

The above question is incomplete.

Correct question:

What is the value of the following integer literals?

  • Decimal
  • Octal
  • Hexadecimal

Answer:

The value of the following integer literals are:

  • Decimal- An integer literal consisting of a sequence of digits is taken to be decimal integer constant unless it begins with 0.

  • Octal- A sequence of digits starting with 0 is taken to be an octal integer. For instance, decimal integer 8 will be written as 010 as octal integer and decimal integer 12 will be written as 014 as octal integer.

  • Hexadecimal- A sequence of digits preceded by 0x or 0X is taken to be an hexadecimal integer.

Similar questions