Teach Time Encyclopedia - Learn About Our World
Home Page
Teach Time
Featured Topics

United States
by state

CITYology

Academic Disciplines

Historical Timelines

Themed Timelines

Calendars

Reference Tables

Biographies

How-tos



Wednesday, December 03, 2008

Trigraph (computing)

A trigraph is a sequence of three characters that represents a single character.

The character set of the C programming language is contained within the 7-bit ASCII character set, but is a superset of the ISO 646-1983 Invariant Code Set. To enable programs to be represented in this reduced character set, the preprocessor replaces all occurrences of the following trigraph sequences by their single-character equivalents before any other processing:

    Trigraph     Equivalent
    
">

">

??= # ??/ \\ ??' ^ ??( [ ??) ] ??! | ??< { ??> } ??- ~

This feature of C language is obsolete today, and many compilers either have an option to turn recognition of trigraphs off, or disable trigraphs by default and have an option to turn them on.

To enter two question marks, one has to use an escape sequence such as "?\\?". The only places in the grammar of C where it would be apropriate to have two question marks in a row would be in character constants, string literals, and comments.



Internet Hotel Solutions

Site Sponsors
AC Units
Baltimore Harbor
Boot Camp Grads
Bra Size
Burkittsville
College Hotels
Digital Harbor
Free Cell Phones
Golden Hare Travel
Golf Vacations
Golf Courses
Gourmet
Hair Styles
Hippodrome
iWoman
Lesson Plans
Maryland Hotels
MD Genealogy
Minor League Stuff
Motel Site
Ocean City
OC Real Estate
Old Agers
Office Supplies
Orlando
Pet Friendly Hotel
Room Prices
Savannah, GA
Ski Vacations
South Baltimore
Student Teaching
Travel Sources
University Hotels
Visit Military Bases
Washington, DC

Brought to you by NoChildLeftBehind.com and the Beaches and Towns Network, LLC.