octal literal

constants of octal numeral system are also known as octal literals. might contain digits from 0 up to 7.

octal literal

Description

 0123

Output

compatible programing languages:
C | Visual C++ .NET | C++ | C# | Java | JavaScript | PHP

Examples

Example

octal literal the possible of use:
x = 012;         // x = 10
y = 4 * 077;     // y = 374
if (x>10)
  y = x / 0xa;   // y = 1

Example

Other pieces of example codes:
0111
0123

octal literal

Description

 &O123

Output

compatible programing languages:
Basic | FreeBASIC | Visual Basic .NET

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
&O111

octal literal

Description

 &123

Output

compatible programing languages:
Free Pascal

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 = 1

Free Pascal

Other pieces of example codes:
&111
&123

you can find it in the following collections: constants
Languages: en hu cz sk