[previous] MISRA-C:2004  Rule  4.2:  (Required) [next] Trigraphs shall not be used.
Trigraphs are denoted by a sequence of 2 question marks followed by a specified third character (e.g. ??- represents a '~' (tilde) character and ??) represents a ']'). They can cause accidental confusion with other uses of two question marks. For example the string

"(Date should be in the form ??-??-??)"

- would not behave as expected, actually being interpreted by the compiler as
"(Date should be in the form ~~]"


QAC messages that encompass this guideline:

3601 Trigraphs (??x) are an ISO feature.



(c) The Motor Industry Research Association, 2004
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents