Visual C++ - 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
- return - Integers
Examples
Visual C++ .NET
Octal literal the possible of use:x = 012; // x = 10
y = 4 * 077; // y = 374
if (x>10)
y = (float)x / 0xa; // y = 1
Visual C++ .NET
Other pieces of example codes:0111
0123
You can find it in the following collections: constants
Octal literal in another programming language:
Differences to: