MISRA Discussion Forums

Full Version: Did '\000' and 000 comply with Rule 2-13-2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Rule 2-10-3 said that Octal constants (other than zero) and octal escape sequences (other than “\0”) shall not be used.

From the description we know that '\0' and 0 comply with the rule.
How about '\00', '\000' , 00 and 000 ?

As written 00 and 000 are compliant, whilst \00 and \000 are non-compliant. This is not a particularly sensible position, so will be reviewed for the next version