Octal literal
Constants of octal numeral system are also known as octal literals. might contain digits from 0 up to 7.octal literal
Description
 0123Output
- return - Integers
 
Examples
Example
Octal literal the possible of use:x = 012;         // x = 10
y = 4 * 077;     // y = 374
if (x>10)
  y = x / 0xa;   // y = 1Example
Other pieces of example codes:01110123octal literal
Description
 &O123Output
- return - Integers
 
Examples
Basic
Octal literal the possible of use:x = &O12         ' x = 10
y = 4 * &O77     ' y = 374
if x>10 then
  y = x / &Ha   ' y = 1
end if
Basic
Other pieces of example codes:&O123&O111octal literal
Description
 &123Output
- return - Integers
 
Examples
Free Pascal
Octal literal the possible of use:x := &12;         // x = 10
y := 4 * &77;     // y = 374
if x>10 then
  y := x / $a;   // y = 1Free Pascal
Other pieces of example codes:&111&123You can find it in the following collections: constants
Octal literal in another programming language: