79152166

Date: 2024-11-03 06:29:05
Score: 1.5
Natty:
Report link

Integral Literal:- A numberical value without decimal.

eg.:- 123,45,-6,-7.

Data Types:-


There are 4 types of Integral literal.

  1. Decimal
  2. Octal
  3. Hexa-decimal
  4. Binary Literal

Decimal:-

Symbols: 0 to 9 Rule:- It must not be start with 0.

Octal:-

symbol:- 0 to 7 Rule:- It must be starts with 0

Hexa-Decimal:-

symbol:- 0 to 9 and A/a to F/f. Rule:- It must be starts with 0x / 0X.

Binary Literal:-

symbol:- 0 and 1 Rule:- It must be starts with 0b/0B.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Avinash Kumar