Encyclopedia > ANSI C

  Article Content

ANSI C

Most programming languages have differences from one implementation to another. For example, a C compiler on a Microsoft Windows system may have some features not found in its counterpart on a UNIX system, or that are accessed in a different way. While this is acceptable in some cases, in others, it may be important to be able to compile the same source code on different systems so as to be able to have the program on different systems at minimal cost.

The community solves this problem by defining a subset of a programming language and standardizing it so different manufacturers abide by it; this means that as long as the programmer sticks with the subset, the software can be ported from one platform to another.

ANSI C is one such subset for the C programming language. POSIX and the Single UNIX Specification are others.

Frequently, it's unreasonable to try to write any non-trivial program in such a way that it can be ported from one platform to another without changes; in this case, one tries to restrict the non-portable code to minimize the effort of porting.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Reformed churches

... Orthodox Christian Reformed Church[?] (Dutch Reformed - GKN) Presbyterian Church of Canada[?] The Presbyterian Church of Canada split from a larger group of ...

 
 
 
This page was created in 43.9 ms