Free Pascal <-> C# | Octal literal
Free Pascal
octal literal
Description
&123
Output
- 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 = 1
.
C#
octal literal
Description
0123
Output
- return - Integers
Examples
C#
Octal literal the possible of use:x = 012; // x = 10
y = 4 * 077; // y = 374
if (x>10)
y = (float)x / 0xa; // y = 1
You can find it in the following collections: constants
Octal literal in another programming language:
Differences to: