Contents 1 History and outlook 1.1 C89 1.2 C90 1.3 C95 1.3.1 Preprocessor test for C95 compatibility 1.4 C99 1.5 C11 1.6 Other related ISO publications 2 Support from major compilers 2.1 Compliance detectability 3 Compilers supporting ANSI C 4 See also 5 References 6 External links

History and outlook[edit] The first standard for C was published by ANSI. Although this document was subsequently adopted by International Organization for Standardization (ISO) and subsequent revisions published by ISO have been adopted by ANSI, many programmers still use "ANSI C" to refer to the standard.[who?] While some software developers use the term ISO C, others are standards-body neutral and use Standard C. C89[edit] In 1983, the American National Standards Institute formed a committee, X3J11, to establish a standard specification of C. The standard was completed in 1989 and ratified as ANSI X3.159-1989 "Programming Language C." This version of the language is often referred to as "ANSI C". Later on sometimes the label "C89" is used to distinguish it from C99 but using the same labelling method. C90[edit] The same standard as C89 was ratified by the International Organization for Standardization as ISO/IEC 9899:1990, with only formatting changes,[1] which is sometimes referred to as C90. Therefore, the terms "C89" and "C90" refer to essentially the same language. This standard has been withdrawn by both ANSI/INCITS[2] and ISO/IEC.[3] C95[edit] In 1995, the ISO published an extension, called Amendment 1, for the ANSI-C standard. Its full name finally was ISO/IEC 9899/AMD1:1995 or nicknamed C95. Aside from error correction there were further changes to the language capabilities,[4][5] such as: Improved multi-byte and wide character support in the standard library, introducing <wchar.h> and <wctype.h> as well as multi-byte I/O Addition of digraphs to the language Specification of standard macros for the alternative specification of operators, e.g. and for && Specification of the standard macro __STDC_VERSION__ In addition to the amendment, two technical corrigenda were published by ISO for C90: ISO/IEC 9899 TCOR1 in 1995 ISO/IEC 9899 TCOR2 in 1996 Preprocessor test for C95 compatibility[edit] #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199409L /* C95 compatible source code. */ #elif defined(__ANSI__) /* C89 compatible source code. */ #endif C99[edit] Main article: C99 In March 2000, ANSI adopted the ISO/IEC 9899:1999 standard. This standard is commonly referred to as C99. Some notable additions to the previous standard include: New built-in data types: long long, _Bool, _Complex, and _Imaginary Several new core language features, including static array indices, designated initializers, compound literals, variable-length arrays, flexible array members, variadic macros, and restrict keyword Several new library headers, including stdint.h, <tgmath.h>, fenv.h, <complex.h> Improved compatibility with several C++ features, including inline functions, single-line comments with //, mixing declarations and code, and universal character names in identifiers Removed several dangerous C89 language features such as implicit function declarations and implicit int Three technical corrigenda were published by ISO for C99: ISO/IEC 9899:1999/Cor.1:2001(E) ISO/IEC 9899:1999/Cor.2:2004(E) ISO/IEC 9899:1999/Cor.3:2007(E), notable for deprecating the standard library function gets This standard has been withdrawn by both ANSI/INCITS[6] and ISO/IEC[7] in favour of C11. C11[edit] Main article: C11 "C11" is the current standard for the C programming language. Notable features introduced over the previous revision include improved Unicode support, type-generic expressions using the new _Generic keyword, a cross-platform multi-threading API (threads.h) and atomic types support in both core language and the library (stdatomic.h). One technical corrigendum has been published by ISO for C11: ISO/IEC 9899:2011/Cor 1:2012[8] Other related ISO publications[edit] As part of the standardization process, ISO also publishes technical reports and specifications related to the C language: ISO/IEC TR 19769:2004,[9] on library extensions to support Unicode transformation formats, integrated into C11 ISO/IEC TR 24731-1:2007,[10] on library extensions to support bounds-checked interfaces, integrated into C11 ISO/IEC TR 18037:2008,[11] on embedded C extensions ISO/IEC TR 24732:2009,[12] on decimal floating point arithmetic, superseded by ISO/IEC TS 18661-2:2015 ISO/IEC TR 24747:2009,[13] on special mathematical functions, ISO/IEC TR 24731-2:2010,[14] on library extensions to support dynamic allocation functions ISO/IEC TS 17961:2013,[15] on secure coding in C ISO/IEC TS 18661-1:2014,[16] on IEC 60559:2011-compatible binary floating-point arithmetic ISO/IEC TS 18661-2:2015,[17] on IEC 60559:2011-compatible decimal floating point arithmetic ISO/IEC TS 18661-3:2015,[18] on IEC 60559:2011-compatible interchange and extended floating-point types ISO/IEC TS 18661-4:2015,[19] on IEC 60559:2011-compatible supplementary functions More technical specifications are in development and pending approval, including the fifth and final part of TS 18661, a software transactional memory specification, and parallel library extensions.[20]

Support from major compilers[edit] This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (June 2011) (Learn how and when to remove this template message) ANSI C is now supported by almost all the widely used compilers. Most of the C code being written nowadays is based on ANSI C. Any program written only in standard C and without any hardware dependent assumptions is virtually guaranteed to compile correctly on any platform with a conforming C implementation. Without such precautions, most programs may compile only on a certain platform or with a particular compiler, due, for example, to the use of non-standard libraries, such as GUI libraries, or to the reliance on compiler- or platform-specific attributes such as the exact size of certain data types and byte endianness. Compliance detectability[edit] To mitigate the differences between K&R C and the ANSI C standard, the __STDC__ ("standard c") macro can be used to split code into ANSI and K&R sections. #if defined(__STDC__) && __STDC__ extern int getopt(int, char * const *, const char *); #else extern int getopt(); #endif In the above example, a prototype is used in a function declaration for ANSI compliant implementations, while an obsolescent non-prototype declaration is used otherwise. Those are still ANSI-compliant as of C99. Note how this code checks both definition and evaluation: this is because some implementations may set __STDC__ to zero to indicate non-ANSI compliance.[citation needed]

Compilers supporting ANSI C[edit] Amsterdam Compiler Kit (C K&R and C89/90) ARM RealView Clang, using LLVM backend GCC (full C89/90, C99 and C11) HP C/ANSI C compiler (C89 and C99)[21] IBM XL C/C++ (C11, starting with version 12.1)[22] Intel's ICC LabWindows/CVI LCC OpenWatcom (C89/90 and some C99) Microsoft Visual C++ (C89/90 and some C99) Pelles C (C99 and C11. Windows only.) vbcc (C89/90 and C99) Tiny C Compiler (C89/90 and some C99)

See also[edit] Computer programming portal Compatibility of C and C++ C++17, C++14, C++11, C++03, C++98, versions of the C++ programming language standard C++ Technical Report 1

References[edit] ^ "Standards - Using the GNU Compiler Collection (GCC)". Retrieved 2012-06-24.  ^;product_id=232462 ^ "ISO/IEC 9899:1990 - Programming Languages -- C". Retrieved 2012-06-24.  ^ Clive D.W. Feather (2010-09-12). "A brief description of Normative Addendum 1".  ^ "ISO/IEC 9899:1990/Amd 1:1995". International Organization for Standardization. 2013-03-22.  ^ "INCITS/ISO/IEC 9899-2012". ANSI.  ^ "ISO/IEC 9899:1999 - Programming Languages -- C". Retrieved 2012-06-24.  ^ "ISO/IEC 9899:2011/Cor 1:2012". International Organization for Standardization.  ^ "ISO/IEC TR 19769:2004". International Organization for Standardization.  ^ "ISO/IEC TR 24731-1:2007". International Organization for Standardization.  ^ "ISO/IEC TR 18037:2008". International Organization for Standardization.  ^ "ISO/IEC TR 24732:2009". International Organization for Standardization.  ^ "ISO/IEC TR 24747:2009". International Organization for Standardization.  ^ "ISO/IEC TR 24731-2:2010". International Organization for Standardization.  ^ "ISO/IEC TS 17961:2013". International Organization for Standardization.  ^ "ISO/IEC TS 18661-1:2014". International Organization for Standardization.  ^ "ISO/IEC TS 18661-2:2015". International Organization for Standardization.  ^ "ISO/IEC TS 18661-3:2015". International Organization for Standardization.  ^ "ISO/IEC TS 18661-4:2015". International Organization for Standardization.  ^ See a list at Visited 16 January 2016. ^ "HP C/ANSI C developer's bundle". Retrieved 2015-07-12.  ^ Support for ISO C11 added to IBM XL C/C++ compilers

External links[edit] ISO C working group Draft ANSI C Standard (ANSI X3J11/88-090) (May 13, 1988), Third Public Review Draft ANSI C Rationale (ANSI X3J11/88-151) (Nov 18, 1988) C Information Bulletin #1 (ANSI X3J11/93-007) (May 27, 1992) ANSI C Yacc grammar ANSI C grammar, Lex specification Schreiner, Axel-Tobias. Object oriented programming with ANSI-C. Hanser. hdl:1850/8544. ISBN 3-446-17426-5.  "ISO/IEC 9899:1999 Programming Languages -- C". American National Standards Institute.  "ANSI Standards Action Vol. 36, #48" (PDF). American National Standards Institute. 2005-12-02.  v t e List of International Electrotechnical Commission standards IEC standards IEC 60027 IEC 60034 IEC 60038 IEC 60062 IEC 60063 IEC 60068 IEC 60112 IEC 60228 IEC 60269 IEC 60297 IEC 60309 IEC 60320 IEC 60364 IEC 60446 IEC 60559 IEC 60601 IEC 60870 IEC 60870-5 IEC 60870-6 IEC 60906-1 IEC 60908 IEC 60929 IEC 60958 AES3 S/PDIF IEC 61030 IEC 61131 IEC 61131-3 IEC 61158 IEC 61162 IEC 61334 IEC 61346 IEC 61355 IEC 61400 IEC 61499 IEC 61508 IEC 61511 IEC 61850 IEC 61851 IEC 61883 IEC 61960 IEC 61968 IEC 61970 IEC 62014-4 IEC 62056 IEC 62061 IEC 62196 IEC 62262 IEC 62264 IEC 62304 IEC 62325 IEC 62351 IEC 62365 IEC 62366 IEC 62379 IEC 62386 IEC 62455 IEC 62680 IEC 62682 IEC 62700 ISO/IEC standards ISO/IEC 646 ISO/IEC 2022 ISO/IEC 4909 ISO/IEC 5218 ISO/IEC 6429 ISO/IEC 6523 ISO/IEC 7810 ISO/IEC 7811 ISO/IEC 7812 ISO/IEC 7813 ISO/IEC 7816 ISO/IEC 7942 ISO/IEC 8613 ISO/IEC 8632 ISO/IEC 8652 ISO/IEC 8859 ISO/IEC 9126 ISO/IEC 9293 ISO/IEC 9592 ISO/IEC 9593 ISO/IEC 9899 ISO/IEC 9945 ISO/IEC 9995 ISO/IEC 10021 ISO/IEC 10116 ISO/IEC 10165 ISO/IEC 10179 ISO/IEC 10646 ISO/IEC 10967 ISO/IEC 11172 ISO/IEC 11179 ISO/IEC 11404 ISO/IEC 11544 ISO/IEC 11801 ISO/IEC 12207 ISO/IEC 13250 ISO/IEC 13346 ISO/IEC 13522-5 ISO/IEC 13568 ISO/IEC 13818 ISO/IEC 14443 ISO/IEC 14496 ISO/IEC 14882 ISO/IEC 15288 ISO/IEC 15291 ISO/IEC 15408 ISO/IEC 15444 ISO/IEC 15445 ISO/IEC 15504 ISO/IEC 15511 ISO/IEC 15693 ISO/IEC 15897 ISO/IEC 15938 ISO/IEC 16262 ISO/IEC 17024 ISO/IEC 17025 ISO/IEC 18000 ISO/IEC 18004 ISO/IEC 18014 ISO/IEC 19752 ISO/IEC 19757 ISO/IEC 19770 ISO/IEC 19788 ISO/IEC 20000 ISO/IEC 21000 ISO/IEC 21827 ISO/IEC 23000 ISO/IEC 23003 ISO/IEC 23008 ISO/IEC 23270 ISO/IEC 23360 ISO/IEC 24707 ISO/IEC 24727 ISO/IEC 24744 ISO/IEC 24752 ISO/IEC 26300 ISO/IEC 27000 ISO/IEC 27000-series ISO/IEC 27002 ISO/IEC 27040 ISO/IEC 29119 ISO/IEC 33001 ISO/IEC 38500 ISO/IEC 42010 ISO/IEC 80000 Related International Electrotechnical Commission v t e C programming language ANSI C C89 and C90 C99 C11 Embedded C MISRA C Features Functions Header files Libraries Operators String Syntax Preprocessor Data types Standard library functions Char (ctype.h) File I/O (stdio.h) Math (math.h) Dynamic memory (stdlib.h) String (string.h) Time (time.h) Variadic (stdarg.h) POSIX Standard libraries Bionic libhybris dietlibc EGLIBC glibc klibc Microsoft Run-time Library musl Newlib uClibc BSD libc Compilers Comparison of compilers ACK Borland Turbo C Clang GCC ICC LCC Pelles C PCC SDCC TCC Microsoft Visual Studio / Express / C++ Watcom C/C++ IDEs Comparison of IDEs Anjuta Code::Blocks CodeLite Eclipse Geany Microsoft Visual Studio NetBeans Comparison with other languages Compatibility of C and C++ Comparison with Embedded C Comparison with Pascal Comparison of programming languages Descendant languages C++ C# D Objective-C Alef Limbo Go Vala Category Retrieved from "" Categories: ANSI standardsC (programming language)Programming language standardsHidden categories: Articles needing additional references from July 2010All articles needing additional referencesAll articles with specifically marked weasel-worded phrasesArticles with specifically marked weasel-worded phrases from August 2017Articles needing additional references from June 2011All articles with unsourced statementsArticles with unsourced statements from January 2016

Navigation menu Personal tools Not logged inTalkContributionsCreate accountLog in Namespaces ArticleTalk Variants Views ReadEditView history More Search Navigation Main pageContentsFeatured contentCurrent eventsRandom articleDonate to WikipediaWikipedia store Interaction HelpAbout WikipediaCommunity portalRecent changesContact page Tools What links hereRelated changesUpload fileSpecial pagesPermanent linkPage informationWikidata itemCite this page Print/export Create a bookDownload as PDFPrintable version Languages العربيةБългарскиČeštinaDeutschEspañolفارسی한국어Bahasa Indonesia日本語NorskNorsk nynorskРусскийSvenskaTürkçe中文 Edit links This page was last edited on 28 December 2017, at 10:15. Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. Privacy policy About Wikipedia Disclaimers Contact Wikipedia Developers Cookie statement Mobile view (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.288","walltime":"0.366","ppvisitednodes":{"value":1248,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":75825,"limit":2097152},"templateargumentsize":{"value":1221,"limit":2097152},"expansiondepth":{"value":11,"limit":40},"expensivefunctioncount":{"value":4,"limit":500},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 302.327 1 -total"," 32.10% 97.037 21 Template:Cite_web"," 12.32% 37.261 1 Template:Refimprove"," 11.35% 34.299 2 Template:Ambox"," 10.61% 32.085 2 Template:Fix"," 7.81% 23.601 1 Template:About"," 7.58% 22.904 1 Template:Who"," 6.91% 20.900 2 Template:Navbox"," 5.27% 15.925 2 Template:Delink"," 5.06% 15.295 1 Template:Citation_needed"]},"scribunto":{"limitreport-timeusage":{"value":"0.141","limit":"10.000"},"limitreport-memusage":{"value":5613532,"limit":52428800}},"cachereport":{"origin":"mw1269","timestamp":"20180219030027","ttl":1900800,"transientcontent":false}}});});(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":67,"wgHostname":"mw1255"});});

ANSI_C - Photos and All Basic Informations

ANSI_C More Links

Paper SizeWikipedia:VerifiabilityHelp:Introduction To Referencing With Wiki Markup/1Help:Maintenance Template RemovalC (programming Language)American National Standards InstituteInternational Organization For StandardizationPortingInternational Organization For StandardizationWikipedia:Manual Of Style/Words To WatchInternational Organization For StandardizationWide CharacterMulti-byte Character SetInput/outputDigraph (computing)C99C Data TypesVariable-length ArrayFlexible Array MemberRestrictStdint.hC++Inline FunctionComment (computer Programming)Gets()C11 (C Standard Revision)Open StandardC (programming Language)UnicodeThread (computing)LinearizabilityInternational Organization For StandardizationDecimal Floating PointIEEE Floating PointDecimal Floating PointWikipedia:Citing SourcesWikipedia:VerifiabilityHelp:Introduction To Referencing With Wiki Markup/1Wikipedia:VerifiabilityHelp:Maintenance Template RemovalSystem PlatformGraphical User InterfaceEndiannessK&R CWikipedia:Citation NeededAmsterdam Compiler KitARM HoldingsClangLLVMGNU Compiler CollectionIBM XL C/C++Intel C++ CompilerLabWindows/CVILCC (compiler)OpenWatcomVisual C++Pelles CVbccTiny C CompilerPortal:Computer ProgrammingCompatibility Of C And C++C++17C++14C++11C++03C++98C++ Technical Report 1Handle SystemInternational Standard Book NumberSpecial:BookSources/3-446-17426-5Template:List Of International Electrotechnical Commission StandardsTemplate Talk:List Of International Electrotechnical Commission StandardsList Of International Electrotechnical Commission StandardsIEC 60027IEC 60034IEC 60038Letter And Digit CodeE-series Of Preferred NumbersIEC 60068Comparative Tracking IndexIEC 60228IEC 6026919-inch RackIEC 60309IEC 60320IEC 60364IEC 60446IEEE 754IEC 60601IEC 60870IEC 60870-5IEC 60870-6IEC 60906-1Compact Disc Digital AudioIEC 60929IEC 60958AES3S/PDIFIEC 61030IEC 61131IEC 61131-3FieldbusIEC 61162IEC 61334IEC 61346IEC 61355IEC 61400IEC 61499IEC 61508IEC 61511IEC 61850IEC 61851IEC 61883IEC 61960IEC 61968IEC 61970IP-XACTIEC 62056IEC 62061IEC 62196EN 62262IEC 62264IEC 62304IEC 62325IEC 62351AES47IEC 62366IEC 62379Digital Addressable Lighting InterfaceIEC 62455USBIEC 62682IEC 62700ISO/IEC 646ISO/IEC 2022ISO/IEC 4909ISO/IEC 5218ANSI Escape CodeISO/IEC 6523ISO/IEC 7810ISO/IEC 7811ISO/IEC 7812ISO/IEC 7813ISO/IEC 7816Graphical Kernel SystemOpen Document ArchitectureComputer Graphics MetafileISO/IEC 8652ISO/IEC 8859ISO/IEC 9126File Allocation TablePHIGSPHIGSPOSIXISO/IEC 9995ISO/IEC 10021ISO/IEC 10116Guidelines For The Definition Of Managed ObjectsDocument Style Semantics And Specification LanguageUniversal Coded Character SetISO/IEC 10967MPEG-1ISO/IEC 11179ISO/IEC 11404JBIGISO/IEC 11801ISO/IEC 12207Topic MapsUniversal Disk FormatMHEG-5Z NotationMPEG-2ISO/IEC 14443MPEG-4C++ISO/IEC 15288Ada Semantic Interface SpecificationCommon CriteriaJPEG 2000HTMLISO/IEC 15504International Standard Identifier For Libraries And Related OrganizationsISO/IEC 15693ISO/IEC 15897MPEG-7ECMAScriptISO/IEC 17024ISO/IEC 17025ISO/IEC 18000QR CodeISO/IEC 18014ISO/IEC 19752RELAX NGISO/IEC 19770ISO/IEC 19788ISO/IEC 20000MPEG-21ISO/IEC 21827MPEG-AMPEG-DMPEG-HC Sharp (programming Language)Linux Standard BaseCommon LogicISO/IEC 24727ISO/IEC 24744Universal Remote ConsoleOpenDocumentISO/IEC 27000ISO/IEC 27000-seriesISO/IEC 27002ISO/IEC 27040ISO/IEC 29119ISO/IEC 33001ISO/IEC 38500ISO/IEC 42010ISO/IEC 80000International Electrotechnical CommissionTemplate:C Programming LanguageTemplate Talk:C Programming LanguageC (programming Language)ANSI CC99C11 (C Standard Revision)Embedded CMISRA CSubroutineInclude DirectiveCategory:C LibrariesOperators In C And C++C String HandlingC SyntaxC PreprocessorC Data TypesC Standard LibraryC Character ClassificationC File Input/outputC Mathematical FunctionsC Dynamic Memory AllocationC String HandlingC Date And Time FunctionsStdarg.hC POSIX LibraryCategory:C Standard LibraryBionic (software)Hybris (software)DietlibcEmbedded GLIBCGNU C LibraryKlibcMicrosoft Windows Library FilesMuslNewlibUClibcBSD LibcCategory:C CompilersList Of CompilersAmsterdam Compiler KitBorland Turbo CClangGNU Compiler CollectionIntel C++ CompilerLCC (compiler)Pelles CPortable C CompilerSmall Device C CompilerTiny C CompilerMicrosoft Visual StudioMicrosoft Visual Studio ExpressVisual C++Watcom C/C++Category:Integrated Development EnvironmentsComparison Of Integrated Development EnvironmentsAnjutaCode::BlocksCodeLiteEclipse (software)GeanyMicrosoft Visual StudioNetBeansCategory:Comparison Of Individual Programming LanguagesCompatibility Of C And C++Embedded CComparison Of Pascal And CComparison Of Programming LanguagesC++C Sharp (programming Language)D (programming Language)Objective-CAlef (programming Language)Limbo (programming Language)Go (programming Language)Vala (programming Language)Category:C (programming Language)Help:CategoryCategory:ANSI StandardsCategory:C (programming Language)Category:Programming Language StandardsCategory:Articles Needing Additional References From July 2010Category:All Articles Needing Additional ReferencesCategory:All Articles With Specifically Marked Weasel-worded PhrasesCategory:Articles With Specifically Marked Weasel-worded Phrases From August 2017Category:Articles Needing Additional References From June 2011Category:All Articles With Unsourced StatementsCategory:Articles With Unsourced Statements From January 2016Discussion About Edits From This IP Address [n]A List Of Edits Made From This IP Address [y]View The Content Page [c]Discussion About The Content Page [t]Edit This Page [e]Visit The Main Page [z]Guides To Browsing WikipediaFeatured Content – The Best Of WikipediaFind Background Information On Current EventsLoad A Random Article [x]Guidance On How To Use And Edit WikipediaFind Out About WikipediaAbout The Project, What You Can Do, Where To Find ThingsA List Of Recent Changes In The Wiki [r]List Of All English Wikipedia Pages Containing Links To This Page [j]Recent Changes In Pages Linked From This Page [k]Upload Files [u]A List Of All Special Pages [q]Wikipedia:AboutWikipedia:General Disclaimer