TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.4.4.1.aChecked automatically with code checker

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).