SPRUI03E June 2015 – January 2023
An octal integer literal is a string of up to 11 octal digits (0 through 7) followed by the suffix Q (or q). Octal literals may also begin with a 0, contain no 8 or 9 digits, and end with no suffix. These are examples of valid octal literals:
10Q | Literal equal to 810 or 816 |
054321 | Literal equal to 2273710 or 58D116 |
100000Q | Literal equal to 3276810 or 800016 |
226q | Literal equal to 15010 or 9616 |