Synopsis: | Only decimal or hexadecimal notation may be used for integer constants. |
Language: | C |
Severity Level: | 6 |
Category: | Lexical Elements |
Description: |
Justification To avoid confusion by the reader. The octal prefix "0" compared to the hexadecimal prefix "0x" is inconspicuous. The reader could easily interpret octal numbers as decimal numbers. Example 011 octal = 9 decimal (and not 11 decimal). |