The information in this article applies to:
SUMMARYTo maintain compatibility with other systems, a series of ANSI- mandated trigraphs have been implemented beginning with Microsoft C version 6.0 and Microsoft QuickC version 2.5. The addition of these trigraphs may require that changes be made to code that was previously written for other versions of C that do not support these codes. The sample code below illustrates one such instance where this is necessary. The trigraphs are listed on page 424 of the Microsoft C "Advanced Programming Techniques" version 6.0 manual. MORE INFORMATION
Trigraphs are three-character combinations that are used to represent
certain symbols in the C language that are not available in all character
sets. For example, some keyboards or character sets do not have the opening
and closing brace characters, "{" and "}". These characters are essential
to writing a C program; therefore, someone without use of these characters
can use the trigraphs "??<" and "??>" in place of the braces.
Sample Code
To prevent the compiler from misinterpreting the "??-" character sequence
as an unintended trigraph, you could replace the printf line above with the
following line:
Notice that the only difference is the double quotation marks used to break
up the string into two substrings, thus eliminating the trigraph pattern.
Additional query words:
Keywords : kbLangC kbVC100 kbVC150 kbVC200 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |