I don't know for sure, but you're most likely to find digraphs and trigraphs being used in IBM mainframe environments. The EBCDIC character set doesn't include some characters that are required for C.
The other justification for digraphs and trigraphs, 7-bit ASCII-ish character sets that replace some punctuation characters with accented letters, is probably less relevant today.
Outside such environments, I suspect that trigraphs are more commonly used by mistake than deliberately, as in:
puts("What happened??!");
For reference, trigraphs were introduced in the 1989 ANSI C standard (which essentially became the 1990 ISO C standard). They are:
??= # ??) ] ??! |
??( [ ??' ^ ??> }
??/ \ ??< { ??- ~
The replacements occur anywhere in source code, including comments and string literals.
Digraphs are alternate spellings of certain tokens, and do not affect comments or literals:
<: [ :> ]
<% { %> }
%: # %:%: ##
Digraphs were introduced by the 1995 amendment to the 1990 ISO C standard.
??(
– Baking??(x)
is pseudocode for a function call. The search is narrowed down by looking for??<
instead, which standing for{
is essential in any C source. — there is not a single genuine example of a trigraph in all 14 pages of results. Mostly they are HTML pseudocode, with some compilers/compiler tests and base64 encoded text thrown in. (I'm interested because I'm writing a preprocessor for C++11 practice.) – Merovingian