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

Guideline:  12.1#2Checked automatically with code checker

This rule is Obsolete
Synopsis:Avoid writing two adjacent question marks anywhere within your source code.
Language:C
Severity Level:6
Category:PREPROCESSING


Description:
Avoiding adjacent question marks eliminates any possible confusion with trigraphs. Note in particular the, once common, practice of using ? as a place holder in a string is very dangerous.

Example:

char date[20] = "??-??-??";
/* This is actually replaced with: */
char date[20] = "~~??";