CINXE.COM
C (programming language) - Wikipedia
<!DOCTYPE html> <html class="client-nojs skin-theme-clientpref-day mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>C (programming language) - Wikipedia</title> <script>(function(){var className="client-js skin-theme-clientpref-day mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"076e9703-f285-4b1c-8d8f-8712bd76a075","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"C_(programming_language)","wgTitle":"C (programming language)","wgCurRevisionId":1260686914,"wgRevisionId":1260686914, "wgArticleId":6021,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"C_(programming_language)","wgRelevantArticleId":6021,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgStableRevisionId":1260686914,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFMode":"stable","wgMFAmc":false,"wgMFAmcOutreachActive":false,"wgMFAmcOutreachUserEligible":false,"wgMFLazyLoadImages":true,"wgMFEditNoticesFeatureConflict":false,"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true}, "wgMFIsSupportedEditRequest":true,"wgMFScriptPath":"","wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":100000,"wgRelatedArticlesCompat":[],"wgEditSubmitButtonLabelPublish":true,"wgSectionTranslationMissingLanguages":[{"lang":"ace","autonym":"Acèh","dir":"ltr"},{"lang":"ady","autonym":"адыгабзэ","dir":"ltr"},{"lang":"alt","autonym":"алтай тил","dir":"ltr"},{"lang":"ami","autonym":"Pangcah","dir":"ltr"},{"lang":"ang","autonym":"Ænglisc","dir":"ltr"},{"lang":"ann","autonym":"Obolo","dir":"ltr"},{"lang":"anp","autonym":"अंगिका","dir":"ltr"},{"lang":"arz","autonym":"مصرى","dir":"rtl"},{"lang":"av","autonym":"авар","dir":"ltr"},{"lang":"avk","autonym":"Kotava","dir":"ltr"},{"lang":"awa","autonym":"अवधी","dir":"ltr"},{"lang":"ay","autonym":"Aymar aru","dir":"ltr"},{"lang":"ba","autonym":"башҡортса","dir":"ltr"},{"lang":"ban","autonym":"Basa Bali","dir":"ltr"},{"lang":"bar","autonym":"Boarisch","dir":"ltr"},{"lang":"bbc", "autonym":"Batak Toba","dir":"ltr"},{"lang":"bcl","autonym":"Bikol Central","dir":"ltr"},{"lang":"bdr","autonym":"Bajau Sama","dir":"ltr"},{"lang":"bew","autonym":"Betawi","dir":"ltr"},{"lang":"bho","autonym":"भोजपुरी","dir":"ltr"},{"lang":"bi","autonym":"Bislama","dir":"ltr"},{"lang":"bjn","autonym":"Banjar","dir":"ltr"},{"lang":"bm","autonym":"bamanankan","dir":"ltr"},{"lang":"bo","autonym":"བོད་ཡིག","dir":"ltr"},{"lang":"bpy","autonym":"বিষ্ণুপ্রিয়া মণিপুরী","dir":"ltr"},{"lang":"btm","autonym":"Batak Mandailing","dir":"ltr"},{"lang":"ce","autonym":"нохчийн","dir":"ltr"},{"lang":"ceb","autonym":"Cebuano","dir":"ltr"},{"lang":"ch","autonym":"Chamoru","dir":"ltr"},{"lang":"chr","autonym":"ᏣᎳᎩ","dir":"ltr"},{"lang":"ckb","autonym":"کوردی","dir":"rtl"},{"lang":"cr","autonym":"Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ","dir":"ltr"},{"lang":"crh","autonym":"qırımtatarca","dir":"ltr"},{"lang":"cu", "autonym":"словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ","dir":"ltr"},{"lang":"dag","autonym":"dagbanli","dir":"ltr"},{"lang":"dga","autonym":"Dagaare","dir":"ltr"},{"lang":"din","autonym":"Thuɔŋjäŋ","dir":"ltr"},{"lang":"diq","autonym":"Zazaki","dir":"ltr"},{"lang":"dsb","autonym":"dolnoserbski","dir":"ltr"},{"lang":"dtp","autonym":"Kadazandusun","dir":"ltr"},{"lang":"dv","autonym":"ދިވެހިބަސް","dir":"rtl"},{"lang":"dz","autonym":"ཇོང་ཁ","dir":"ltr"},{"lang":"ee","autonym":"eʋegbe","dir":"ltr"},{"lang":"eml","autonym":"emiliàn e rumagnòl","dir":"ltr"},{"lang":"fat","autonym":"mfantse","dir":"ltr"},{"lang":"ff","autonym":"Fulfulde","dir":"ltr"},{"lang":"fj","autonym":"Na Vosa Vakaviti","dir":"ltr"},{"lang":"fo","autonym":"føroyskt","dir":"ltr"},{"lang":"fon","autonym":"fɔ̀ngbè","dir":"ltr"},{"lang":"frp","autonym":"arpetan","dir":"ltr"},{"lang":"frr","autonym":"Nordfriisk","dir":"ltr"},{"lang":"fur","autonym":"furlan","dir":"ltr"},{"lang":"fy", "autonym":"Frysk","dir":"ltr"},{"lang":"gag","autonym":"Gagauz","dir":"ltr"},{"lang":"gan","autonym":"贛語","dir":"ltr"},{"lang":"gcr","autonym":"kriyòl gwiyannen","dir":"ltr"},{"lang":"glk","autonym":"گیلکی","dir":"rtl"},{"lang":"gn","autonym":"Avañe'ẽ","dir":"ltr"},{"lang":"gom","autonym":"गोंयची कोंकणी / Gõychi Konknni","dir":"ltr"},{"lang":"gor","autonym":"Bahasa Hulontalo","dir":"ltr"},{"lang":"gpe","autonym":"Ghanaian Pidgin","dir":"ltr"},{"lang":"guc","autonym":"wayuunaiki","dir":"ltr"},{"lang":"gur","autonym":"farefare","dir":"ltr"},{"lang":"guw","autonym":"gungbe","dir":"ltr"},{"lang":"gv","autonym":"Gaelg","dir":"ltr"},{"lang":"haw","autonym":"Hawaiʻi","dir":"ltr"},{"lang":"hif","autonym":"Fiji Hindi","dir":"ltr"},{"lang":"hsb","autonym":"hornjoserbsce","dir":"ltr"},{"lang":"ht","autonym":"Kreyòl ayisyen","dir":"ltr"},{"lang":"hyw","autonym":"Արեւմտահայերէն","dir":"ltr"},{"lang":"iba","autonym":"Jaku Iban","dir":"ltr"},{ "lang":"ie","autonym":"Interlingue","dir":"ltr"},{"lang":"ig","autonym":"Igbo","dir":"ltr"},{"lang":"igl","autonym":"Igala","dir":"ltr"},{"lang":"ilo","autonym":"Ilokano","dir":"ltr"},{"lang":"iu","autonym":"ᐃᓄᒃᑎᑐᑦ / inuktitut","dir":"ltr"},{"lang":"jam","autonym":"Patois","dir":"ltr"},{"lang":"kbd","autonym":"адыгэбзэ","dir":"ltr"},{"lang":"kbp","autonym":"Kabɩyɛ","dir":"ltr"},{"lang":"kcg","autonym":"Tyap","dir":"ltr"},{"lang":"kg","autonym":"Kongo","dir":"ltr"},{"lang":"kge","autonym":"Kumoring","dir":"ltr"},{"lang":"ki","autonym":"Gĩkũyũ","dir":"ltr"},{"lang":"kl","autonym":"kalaallisut","dir":"ltr"},{"lang":"koi","autonym":"перем коми","dir":"ltr"},{"lang":"krc","autonym":"къарачай-малкъар","dir":"ltr"},{"lang":"ks","autonym":"कॉशुर / کٲشُر","dir":"rtl"},{"lang":"kus","autonym":"Kʋsaal","dir":"ltr"},{"lang":"kv","autonym":"коми","dir":"ltr"},{"lang":"kw","autonym":"kernowek","dir":"ltr"},{"lang":"lad","autonym": "Ladino","dir":"ltr"},{"lang":"lb","autonym":"Lëtzebuergesch","dir":"ltr"},{"lang":"lez","autonym":"лезги","dir":"ltr"},{"lang":"lg","autonym":"Luganda","dir":"ltr"},{"lang":"li","autonym":"Limburgs","dir":"ltr"},{"lang":"lij","autonym":"Ligure","dir":"ltr"},{"lang":"lld","autonym":"Ladin","dir":"ltr"},{"lang":"ln","autonym":"lingála","dir":"ltr"},{"lang":"ltg","autonym":"latgaļu","dir":"ltr"},{"lang":"mad","autonym":"Madhurâ","dir":"ltr"},{"lang":"map-bms","autonym":"Basa Banyumasan","dir":"ltr"},{"lang":"mdf","autonym":"мокшень","dir":"ltr"},{"lang":"mhr","autonym":"олык марий","dir":"ltr"},{"lang":"mi","autonym":"Māori","dir":"ltr"},{"lang":"min","autonym":"Minangkabau","dir":"ltr"},{"lang":"mnw","autonym":"ဘာသာမန်","dir":"ltr"},{"lang":"mos","autonym":"moore","dir":"ltr"},{"lang":"mrj","autonym":"кырык мары","dir":"ltr"},{"lang":"mt","autonym":"Malti","dir":"ltr"},{"lang":"mwl","autonym":"Mirandés","dir":"ltr"},{"lang":"myv", "autonym":"эрзянь","dir":"ltr"},{"lang":"mzn","autonym":"مازِرونی","dir":"rtl"},{"lang":"nah","autonym":"Nāhuatl","dir":"ltr"},{"lang":"nan","autonym":"閩南語 / Bân-lâm-gú","dir":"ltr"},{"lang":"nap","autonym":"Napulitano","dir":"ltr"},{"lang":"nb","autonym":"norsk bokmål","dir":"ltr"},{"lang":"nds","autonym":"Plattdüütsch","dir":"ltr"},{"lang":"nds-nl","autonym":"Nedersaksies","dir":"ltr"},{"lang":"new","autonym":"नेपाल भाषा","dir":"ltr"},{"lang":"nia","autonym":"Li Niha","dir":"ltr"},{"lang":"nqo","autonym":"ߒߞߏ","dir":"rtl"},{"lang":"nr","autonym":"isiNdebele seSewula","dir":"ltr"},{"lang":"nso","autonym":"Sesotho sa Leboa","dir":"ltr"},{"lang":"ny","autonym":"Chi-Chewa","dir":"ltr"},{"lang":"om","autonym":"Oromoo","dir":"ltr"},{"lang":"os","autonym":"ирон","dir":"ltr"},{"lang":"pag","autonym":"Pangasinan","dir":"ltr"},{"lang":"pam","autonym":"Kapampangan","dir":"ltr"},{"lang":"pap","autonym":"Papiamentu","dir":"ltr"},{"lang":"pcd", "autonym":"Picard","dir":"ltr"},{"lang":"pcm","autonym":"Naijá","dir":"ltr"},{"lang":"pdc","autonym":"Deitsch","dir":"ltr"},{"lang":"ps","autonym":"پښتو","dir":"rtl"},{"lang":"pwn","autonym":"pinayuanan","dir":"ltr"},{"lang":"rm","autonym":"rumantsch","dir":"ltr"},{"lang":"rn","autonym":"ikirundi","dir":"ltr"},{"lang":"rsk","autonym":"руски","dir":"ltr"},{"lang":"rue","autonym":"русиньскый","dir":"ltr"},{"lang":"rup","autonym":"armãneashti","dir":"ltr"},{"lang":"rw","autonym":"Ikinyarwanda","dir":"ltr"},{"lang":"sa","autonym":"संस्कृतम्","dir":"ltr"},{"lang":"sc","autonym":"sardu","dir":"ltr"},{"lang":"scn","autonym":"sicilianu","dir":"ltr"},{"lang":"sd","autonym":"سنڌي","dir":"rtl"},{"lang":"se","autonym":"davvisámegiella","dir":"ltr"},{"lang":"sg","autonym":"Sängö","dir":"ltr"},{"lang":"sgs","autonym":"žemaitėška","dir":"ltr"},{"lang":"shi","autonym":"Taclḥit","dir":"ltr"},{"lang":"shn","autonym":"ၽႃႇသႃႇတႆး ","dir": "ltr"},{"lang":"skr","autonym":"سرائیکی","dir":"rtl"},{"lang":"sm","autonym":"Gagana Samoa","dir":"ltr"},{"lang":"smn","autonym":"anarâškielâ","dir":"ltr"},{"lang":"sn","autonym":"chiShona","dir":"ltr"},{"lang":"so","autonym":"Soomaaliga","dir":"ltr"},{"lang":"srn","autonym":"Sranantongo","dir":"ltr"},{"lang":"ss","autonym":"SiSwati","dir":"ltr"},{"lang":"st","autonym":"Sesotho","dir":"ltr"},{"lang":"stq","autonym":"Seeltersk","dir":"ltr"},{"lang":"su","autonym":"Sunda","dir":"ltr"},{"lang":"szl","autonym":"ślůnski","dir":"ltr"},{"lang":"tay","autonym":"Tayal","dir":"ltr"},{"lang":"tcy","autonym":"ತುಳು","dir":"ltr"},{"lang":"tdd","autonym":"ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ","dir":"ltr"},{"lang":"tet","autonym":"tetun","dir":"ltr"},{"lang":"ti","autonym":"ትግርኛ","dir":"ltr"},{"lang":"tk","autonym":"Türkmençe","dir":"ltr"},{"lang":"tly","autonym":"tolışi","dir":"ltr"},{"lang":"tn","autonym":"Setswana","dir":"ltr"},{"lang":"to","autonym":"lea faka-Tonga", "dir":"ltr"},{"lang":"tpi","autonym":"Tok Pisin","dir":"ltr"},{"lang":"trv","autonym":"Seediq","dir":"ltr"},{"lang":"ts","autonym":"Xitsonga","dir":"ltr"},{"lang":"tum","autonym":"chiTumbuka","dir":"ltr"},{"lang":"tw","autonym":"Twi","dir":"ltr"},{"lang":"ty","autonym":"reo tahiti","dir":"ltr"},{"lang":"tyv","autonym":"тыва дыл","dir":"ltr"},{"lang":"udm","autonym":"удмурт","dir":"ltr"},{"lang":"ve","autonym":"Tshivenda","dir":"ltr"},{"lang":"vep","autonym":"vepsän kel’","dir":"ltr"},{"lang":"vls","autonym":"West-Vlams","dir":"ltr"},{"lang":"vo","autonym":"Volapük","dir":"ltr"},{"lang":"vro","autonym":"võro","dir":"ltr"},{"lang":"wa","autonym":"walon","dir":"ltr"},{"lang":"wo","autonym":"Wolof","dir":"ltr"},{"lang":"xal","autonym":"хальмг","dir":"ltr"},{"lang":"xmf","autonym":"მარგალური","dir":"ltr"},{"lang":"yo","autonym":"Yorùbá","dir":"ltr"},{"lang":"yue","autonym":"粵語","dir":"ltr"},{"lang":"za","autonym":"Vahcuengh","dir":"ltr"},{ "lang":"zu","autonym":"isiZulu","dir":"ltr"}],"wgSectionTranslationTargetLanguages":["ace","ady","alt","am","ami","an","ang","ann","anp","ar","ary","arz","as","ast","av","avk","awa","ay","az","azb","ba","ban","bar","bbc","bcl","bdr","be","bew","bg","bho","bi","bjn","blk","bm","bn","bo","bpy","br","bs","btm","bug","ca","cdo","ce","ceb","ch","chr","ckb","co","cr","crh","cs","cu","cy","da","dag","de","dga","din","diq","dsb","dtp","dv","dz","ee","el","eml","eo","es","et","eu","fa","fat","ff","fi","fj","fo","fon","fr","frp","frr","fur","fy","gag","gan","gcr","gl","glk","gn","gom","gor","gpe","gu","guc","gur","guw","gv","ha","hak","haw","he","hi","hif","hr","hsb","ht","hu","hy","hyw","ia","iba","ie","ig","igl","ilo","io","is","it","iu","ja","jam","jv","ka","kaa","kab","kbd","kbp","kcg","kg","kge","ki","kk","kl","km","kn","ko","koi","krc","ks","ku","kus","kv","kw","ky","lad","lb","lez","lg","li","lij","lld","lmo","ln","lo","lt","ltg","lv","mad","mai","map-bms","mdf","mg","mhr","mi","min","mk" ,"ml","mn","mni","mnw","mos","mr","mrj","ms","mt","mwl","my","myv","mzn","nah","nan","nap","nb","nds","nds-nl","ne","new","nia","nl","nn","nqo","nr","nso","ny","oc","om","or","os","pa","pag","pam","pap","pcd","pcm","pdc","pl","pms","pnb","ps","pt","pwn","qu","rm","rn","ro","rsk","rue","rup","rw","sa","sah","sat","sc","scn","sco","sd","se","sg","sgs","sh","shi","shn","si","sk","skr","sl","sm","smn","sn","so","sq","sr","srn","ss","st","stq","su","sv","sw","szl","ta","tay","tcy","tdd","te","tet","tg","th","ti","tk","tl","tly","tn","to","tpi","tr","trv","ts","tt","tum","tw","ty","tyv","udm","ur","uz","ve","vec","vep","vi","vls","vo","vro","wa","war","wo","wuu","xal","xh","xmf","yi","yo","yue","za","zgh","zh","zu"],"isLanguageSearcherCXEntrypointEnabled":true,"mintEntrypointLanguages":["ace","ast","azb","bcl","bjn","bh","crh","ff","fon","ig","is","ki","ks","lmo","min","sat","ss","tn","vec"],"wgWikibaseItemId":"Q15777","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness", "fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false,"wgMinervaPermissions":{"watchable":true,"watch":false},"wgMinervaFeatures":{"beta":false,"donate":true,"mobileOptionsLink":true,"categories":false,"pageIssues":true,"talkAtTop":true,"historyInPageActions":false,"overflowSubmenu":false,"tabsOnSpecials":true,"personalMenu":false,"mainMenuExpanded":false,"echo":true,"nightMode":true},"wgMinervaDownloadNamespaces":[0]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.minerva.styles":"ready","skins.minerva.content.styles.images":"ready","mediawiki.hlist":"ready","skins.minerva.codex.styles":"ready","skins.minerva.icons":"ready", "skins.minerva.amc.styles":"ready","ext.flaggedRevs.basic":"ready","mediawiki.codex.messagebox.styles":"ready","ext.wikimediamessages.styles":"ready","mobile.init.styles":"ready","ext.relatedArticles.styles":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","mediawiki.page.media","ext.scribunto.logs","site","mediawiki.page.ready","skins.minerva.scripts","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.flaggedRevs.advanced","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","mobile.init","ext.echo.centralauth","ext.relatedArticles.readMore.bootstrap","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.cx.eventlogging.campaigns","ext.cx.entrypoints.mffrequentlanguages","ext.cx.entrypoints.languagesearcher.init","mw.externalguidance.init","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession", "wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.flaggedRevs.basic%7Cext.pygments%2CwikimediaBadges%7Cext.relatedArticles.styles%7Cext.wikimediamessages.styles%7Cmediawiki.codex.messagebox.styles%7Cmediawiki.hlist%7Cmobile.init.styles%7Cskins.minerva.amc.styles%7Cskins.minerva.codex.styles%7Cskins.minerva.content.styles.images%7Cskins.minerva.icons%2Cstyles%7Cwikibase.client.init&only=styles&skin=minerva"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=minerva"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=minerva"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="theme-color" content="#eaecf0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0"> <meta property="og:title" content="C (programming language) - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="manifest" href="/w/api.php?action=webapp-manifest"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=C_(programming_language)&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/C_(programming_language)"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-C_programming_language rootpage-C_programming_language stable issues-group-B skin-minerva action-view skin--responsive mw-mf-amc-disabled mw-mf"><div id="mw-mf-viewport"> <div id="mw-mf-page-center"> <a class="mw-mf-page-center__mask" href="#"></a> <header class="header-container header-chrome"> <div class="minerva-header"> <nav class="navigation-drawer toggle-list view-border-box"> <input type="checkbox" id="main-menu-input" class="toggle-list__checkbox" role="button" aria-haspopup="true" aria-expanded="false" aria-labelledby="mw-mf-main-menu-button"> <label role="button" for="main-menu-input" id="mw-mf-main-menu-button" aria-hidden="true" data-event-name="ui.mainmenu" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet toggle-list__toggle"> <span class="minerva-icon minerva-icon--menu"></span> <span></span> </label> <div id="mw-mf-page-left" class="menu view-border-box"> <ul id="p-navigation" class="toggle-list__list"> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--home" href="/wiki/Main_Page" data-mw="interface"> <span class="minerva-icon minerva-icon--home"></span> <span class="toggle-list-item__label">Home</span> </a> </li> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--random" href="/wiki/Special:Random" data-mw="interface"> <span class="minerva-icon minerva-icon--die"></span> <span class="toggle-list-item__label">Random</span> </a> </li> <li class="toggle-list-item skin-minerva-list-item-jsonly"> <a class="toggle-list-item__anchor menu__item--nearby" href="/wiki/Special:Nearby" data-event-name="menu.nearby" data-mw="interface"> <span class="minerva-icon minerva-icon--mapPin"></span> <span class="toggle-list-item__label">Nearby</span> </a> </li> </ul> <ul id="p-personal" class="toggle-list__list"> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--login" href="/w/index.php?title=Special:UserLogin&returnto=C+%28programming+language%29" data-event-name="menu.login" data-mw="interface"> <span class="minerva-icon minerva-icon--logIn"></span> <span class="toggle-list-item__label">Log in</span> </a> </li> </ul> <ul id="pt-preferences" class="toggle-list__list"> <li class="toggle-list-item skin-minerva-list-item-jsonly"> <a class="toggle-list-item__anchor menu__item--settings" href="/w/index.php?title=Special:MobileOptions&returnto=C+%28programming+language%29" data-event-name="menu.settings" data-mw="interface"> <span class="minerva-icon minerva-icon--settings"></span> <span class="toggle-list-item__label">Settings</span> </a> </li> </ul> <ul id="p-donation" class="toggle-list__list"> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--donate" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_en.wikipedia.org&uselang=en&wmf_key=minerva" data-event-name="menu.donate" data-mw="interface"> <span class="minerva-icon minerva-icon--heart"></span> <span class="toggle-list-item__label">Donate</span> </a> </li> </ul> <ul class="hlist"> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--about" href="/wiki/Wikipedia:About" data-mw="interface"> <span class="toggle-list-item__label">About Wikipedia</span> </a> </li> <li class="toggle-list-item "> <a class="toggle-list-item__anchor menu__item--disclaimers" href="/wiki/Wikipedia:General_disclaimer" data-mw="interface"> <span class="toggle-list-item__label">Disclaimers</span> </a> </li> </ul> </div> <label class="main-menu-mask" for="main-menu-input"></label> </nav> <div class="branding-box"> <a href="/wiki/Main_Page"> <span><img src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" alt="Wikipedia" width="120" height="18" style="width: 7.5em; height: 1.125em;"/> </span> </a> </div> <form action="/w/index.php" method="get" class="minerva-search-form"> <div class="search-box"> <input type="hidden" name="title" value="Special:Search"/> <input class="search skin-minerva-search-trigger" id="searchInput" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f"> <span class="search-box-icon-overlay"><span class="minerva-icon minerva-icon--search"></span> </span> </div> <button id="searchIcon" class="cdx-button cdx-button--size-large cdx-button--icon-only cdx-button--weight-quiet skin-minerva-search-trigger"> <span class="minerva-icon minerva-icon--search"></span> <span>Search</span> </button> </form> <nav class="minerva-user-navigation" aria-label="User navigation"> </nav> </div> </header> <main id="content" class="mw-body"> <div class="banner-container"> <div id="siteNotice"></div> </div> <div class="pre-content heading-holder"> <div class="page-heading"> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">C (programming language)</span></h1> <div class="tagline"></div> </div> <ul id="p-associated-pages" class="minerva__tab-container"> <li class="minerva__tab selected"> <a class="minerva__tab-text" href="/wiki/C_(programming_language)" rel="" data-event-name="tabs.subject">Article</a> </li> <li class="minerva__tab "> <a class="minerva__tab-text" href="/wiki/Talk:C_(programming_language)" rel="discussion" data-event-name="tabs.talk">Talk</a> </li> </ul> <nav class="page-actions-menu"> <ul id="p-views" class="page-actions-menu__list"> <li id="language-selector" class="page-actions-menu__list-item"> <a role="button" href="#p-lang" data-mw="interface" data-event-name="menu.languages" title="Language" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet language-selector"> <span class="minerva-icon minerva-icon--language"></span> <span>Language</span> </a> </li> <li id="page-actions-watch" class="page-actions-menu__list-item"> <a role="button" id="ca-watch" href="/w/index.php?title=Special:UserLogin&returnto=C+%28programming+language%29" data-event-name="menu.watch" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet menu__item--page-actions-watch"> <span class="minerva-icon minerva-icon--star"></span> <span>Watch</span> </a> </li> <li id="page-actions-edit" class="page-actions-menu__list-item"> <a role="button" id="ca-edit" href="/w/index.php?title=C_(programming_language)&action=edit" data-event-name="menu.edit" data-mw="interface" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet edit-page menu__item--page-actions-edit"> <span class="minerva-icon minerva-icon--edit"></span> <span>Edit</span> </a> </li> </ul> </nav> <!-- version 1.0.2 (change every time you update a partial) --> <div id="mw-content-subtitle"><div id="mw-fr-revision-messages"><div class="cdx-message mw-fr-message-box cdx-message--inline cdx-message--notice mw-fr-mobile-message-inline"><span class="cdx-message__icon"></span><div class="cdx-message__content">This is the <a href="/wiki/Wikipedia:Pending_changes" title="Wikipedia:Pending changes">latest accepted revision</a>, <a class="external text" href="https://en.wikipedia.org/w/index.php?title=Special:Log&type=review&page=C_(programming_language)">reviewed</a> on <i>2 December 2024</i>.</div></div></div></div> </div> <div id="bodyContent" class="content"> <div id="mw-content-text" class="mw-body-content"><script>function mfTempOpenSection(id){var block=document.getElementById("mf-section-"+id);block.className+=" open-block";block.previousSibling.className+=" open-block";}</script><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><section class="mf-section-0" id="mf-section-0"> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">"C programming language" redirects here. For the book, see <a href="/wiki/The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a>.</div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Not to be confused with <a href="/wiki/C%2B%2B" title="C++">C++</a> or <a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>.</div> <p class="mw-empty-elt"> </p> <style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><p><b>C</b> (<i>pronounced</i> <span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa"><a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="'s' in 'sigh'">s</span><span title="/iː/: 'ee' in 'fleece'">iː</span></span>/</a></span></span><i> – like the letter <a href="/wiki/C" title="C">c</a></i>)<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> is a <a href="/wiki/General-purpose_programming_language" title="General-purpose programming language">general-purpose programming language</a>. It was created in the 1970s by <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> and remains very widely used and influential. By design, C's features cleanly reflect the capabilities of the targeted <a href="/wiki/Central_processing_unit" title="Central processing unit">CPU</a>s. It has found lasting use in <a href="/wiki/Operating_system" title="Operating system">operating systems</a> code (especially in <a href="/wiki/Kernel_(operating_system)" title="Kernel (operating system)">kernels</a><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>), <a href="/wiki/Device_driver" title="Device driver">device drivers</a>, and <a href="/wiki/Protocol_stack" title="Protocol stack">protocol stacks</a>, but its use in <a href="/wiki/Application_software" title="Application software">application software</a> has been decreasing.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> C is commonly used on computer architectures that range from the largest <a href="/wiki/Supercomputer" title="Supercomputer">supercomputers</a> to the smallest <a href="/wiki/Microcontroller" title="Microcontroller">microcontrollers</a> and <a href="/wiki/Embedded_system" title="Embedded system">embedded systems</a>. </p><table class="infobox vevent"><caption class="infobox-title summary">C</caption><tbody><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><a href="/wiki/File:The_C_Programming_Language_logo.svg" class="mw-file-description"><img alt='Text says "The C Programming Language"' src="//upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/100px-The_C_Programming_Language_logo.svg.png" decoding="async" width="100" height="104" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/150px-The_C_Programming_Language_logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/200px-The_C_Programming_Language_logo.svg.png 2x" data-file-width="318" data-file-height="332"></a></span><div class="infobox-caption">Logotype used on the cover of the first edition of <i><a href="/wiki/The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i><sup id="cite_ref-C_in_a_Nutshell_1-0" class="reference"><a href="#cite_note-C_in_a_Nutshell-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></div></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Programming_paradigm" title="Programming paradigm">Paradigm</a></th><td class="infobox-data"><a href="/wiki/Multi-paradigm" class="mw-redirect" title="Multi-paradigm">Multi-paradigm</a>: <a href="/wiki/Imperative_programming" title="Imperative programming">imperative</a> (<a href="/wiki/Procedural_programming" title="Procedural programming">procedural</a>), <a href="/wiki/Structured_programming" title="Structured programming">structured</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_design" title="Software design">Designed by</a></th><td class="infobox-data"><a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_developer" class="mw-redirect" title="Software developer">Developer</a></th><td class="infobox-data organiser">ANSI X3J11 (<a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a>); <a href="/wiki/ISO/IEC_JTC_1/SC_22" title="ISO/IEC JTC 1/SC 22">ISO/IEC JTC 1 (Joint Technical Committee 1) / SC 22 (Subcommittee 22)</a> / WG 14 (Working Group 14) (ISO C)</td></tr><tr><th scope="row" class="infobox-label">First appeared</th><td class="infobox-data">1972<span class="noprint">; 52 years ago</span><span style="display:none"> (<span class="bday dtstart published updated">1972</span>)</span><sup id="cite_ref-dottcl_2_2-0" class="reference"><a href="#cite_note-dottcl_2-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></td></tr><tr><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1257001546"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;"><a href="/wiki/C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a> / October 31, 2024<span class="noprint">; 32 days ago</span><span style="display:none"> (<span class="bday dtstart published updated">2024-10-31</span>)</span></div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_release_life_cycle#Beta" title="Software release life cycle">Preview release</a></th><td class="infobox-data"><div style="margin:0px;">C2y (N3220) / February 21, 2024<span class="noprint">; 9 months ago</span><span style="display:none"> (<span class="bday dtstart published updated">2024-02-21</span>)</span><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></div></td></tr><tr style="display:none"><td colspan="2"> </td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Type_system" title="Type system">Typing discipline</a></th><td class="infobox-data"><a href="/wiki/Type_system" title="Type system">Static</a>, <a href="/wiki/Strong_and_weak_typing" title="Strong and weak typing">weak</a>, <a href="/wiki/Manifest_typing" title="Manifest typing">manifest</a>, <a href="/wiki/Nominal_type_system" title="Nominal type system">nominal</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Operating_system" title="Operating system">OS</a></th><td class="infobox-data"><a href="/wiki/Cross-platform" class="mw-redirect" title="Cross-platform">Cross-platform</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Filename_extension" title="Filename extension">Filename extensions</a></th><td class="infobox-data">.c, .h</td></tr><tr><th scope="row" class="infobox-label">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://www.iso.org/standard/82075.html">www<wbr></wbr>.iso<wbr></wbr>.org<wbr></wbr>/standard<wbr></wbr>/82075<wbr></wbr>.html</a></span><br> <span class="url"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/">www<wbr></wbr>.open-std<wbr></wbr>.org<wbr></wbr>/jtc1<wbr></wbr>/sc22<wbr></wbr>/wg14<wbr></wbr>/</a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Major <a href="/wiki/Programming_language_implementation" title="Programming language implementation">implementations</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/Portable_C_Compiler" title="Portable C Compiler">pcc</a>, <a href="/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>, <a href="/wiki/Clang" title="Clang">Clang</a>, <span class="nowrap"><a href="/wiki/Intel_C%2B%2B_Compiler" title="Intel C++ Compiler">Intel C</a></span>, <a href="/wiki/C%2B%2BBuilder" title="C++Builder">C++Builder</a>, <span class="nowrap"><a href="/wiki/Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">Microsoft Visual C++</a></span>, <span class="nowrap"><a href="/wiki/Watcom_C/C%2B%2B" title="Watcom C/C++">Watcom C</a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;"><a href="/wiki/Programming_language#Dialects,_flavors_and_implementations" title="Programming language">Dialects</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/Cyclone_(programming_language)" title="Cyclone (programming language)">Cyclone</a>, <a href="/wiki/Unified_Parallel_C" title="Unified Parallel C">Unified Parallel C</a>, <a href="/wiki/Split-C" title="Split-C">Split-C</a>, <a href="/wiki/Cilk" title="Cilk">Cilk</a>, <a href="/wiki/C*" title="C*">C*</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Influenced by</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/B_(programming_language)" title="B (programming language)">B</a> (<a href="/wiki/BCPL" title="BCPL">BCPL</a>, <a href="/wiki/CPL_(programming_language)" title="CPL (programming language)">CPL</a>), <a href="/wiki/ALGOL_68" title="ALGOL 68">ALGOL 68</a>,<sup id="cite_ref-dottcl_1_4-0" class="reference"><a href="#cite_note-dottcl_1-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> <a href="/wiki/PL/I" title="PL/I">PL/I</a>, <a href="/wiki/FORTRAN" class="mw-redirect" title="FORTRAN">FORTRAN</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Influenced</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/Category:C_programming_language_family" title="Category:C programming language family">Numerous</a>: <a href="/wiki/AMPL" title="AMPL">AMPL</a>, <a href="/wiki/AWK" title="AWK">AWK</a>, <a href="/wiki/C_shell" title="C shell">csh</a>, <a href="/wiki/C%2B%2B" title="C++">C++</a>, <a href="/wiki/C--" title="C--">C--</a>, <a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>, <a href="/wiki/Objective-C" title="Objective-C">Objective-C</a>, <a href="/wiki/D_(programming_language)" title="D (programming language)">D</a>, <a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a>, <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a>, <a href="/wiki/JS%2B%2B" title="JS++">JS++</a>, <a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="/wiki/Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a>, <a href="/wiki/LPC_(programming_language)" class="mw-redirect" title="LPC (programming language)">LPC</a>, <a href="/wiki/Perl" title="Perl">Perl</a>, <a href="/wiki/PHP" title="PHP">PHP</a>, <a href="/wiki/Pike_(programming_language)" title="Pike (programming language)">Pike</a>, <a href="/wiki/Processing_(programming_language)" class="mw-redirect" title="Processing (programming language)">Processing</a>, <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a>, <a href="/wiki/Seed7" title="Seed7">Seed7</a>, <a href="/wiki/V_(programming_language)" title="V (programming language)">V (Vlang)</a>, <a href="/wiki/Vala_(programming_language)" title="Vala (programming language)">Vala</a>, <a href="/wiki/Verilog" title="Verilog">Verilog</a> (HDL),<sup id="cite_ref-vinsp_5-0" class="reference"><a href="#cite_note-vinsp-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> <a href="/wiki/Nim_(programming_language)" title="Nim (programming language)">Nim</a>, <a href="/wiki/Zig_(programming_language)" title="Zig (programming language)">Zig</a></td></tr><tr><td colspan="2" class="infobox-below hlist" style="border-top: 1px solid #aaa; padding-top: 3px;"> <ul><li><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Wikibooks-logo-en-noslogan.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/16px-Wikibooks-logo-en-noslogan.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/24px-Wikibooks-logo-en-noslogan.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/32px-Wikibooks-logo-en-noslogan.svg.png 2x" data-file-width="400" data-file-height="400"></a></span> <a href="https://en.wikibooks.org/wiki/C_Programming" class="extiw" title="wikibooks:C Programming">C Programming</a> at Wikibooks</li></ul> </td></tr></tbody></table> <p>A successor to the programming language <a href="/wiki/B_(programming_language)" title="B (programming language)">B</a>, C was originally developed at <a href="/wiki/Bell_Labs" title="Bell Labs">Bell Labs</a> by Ritchie between 1972 and 1973 to construct utilities running on <a href="/wiki/Unix" title="Unix">Unix</a>. It was applied to re-implementing the kernel of the Unix operating system.<sup id="cite_ref-sigplan_9-0" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> During the 1980s, C gradually gained popularity. It has become one of the most widely used <a href="/wiki/Programming_language" title="Programming language">programming languages</a>,<sup id="cite_ref-langpop_10-0" class="reference"><a href="#cite_note-langpop-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-TIOBE-2009_11-0" class="reference"><a href="#cite_note-TIOBE-2009-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> with C <a href="/wiki/Compiler" title="Compiler">compilers</a> available for practically all modern <a href="/wiki/Computer_architecture" title="Computer architecture">computer architectures</a> and <a href="/wiki/Operating_system" title="Operating system">operating systems</a>. The book <i><a href="/wiki/The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>, co-authored by the original language designer, served for many years as the <i>de facto</i> standard for the language.<sup id="cite_ref-ward198308_12-0" class="reference"><a href="#cite_note-ward198308-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-C_in_a_Nutshell_1-1" class="reference"><a href="#cite_note-C_in_a_Nutshell-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> C has been standardized since 1989 by the <a href="/wiki/American_National_Standards_Institute" title="American National Standards Institute">American National Standards Institute</a> (ANSI) and, subsequently, jointly by the <a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">International Organization for Standardization</a> (ISO) and the <a href="/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission">International Electrotechnical Commission</a> (IEC). </p><p>C is an <a href="/wiki/Imperative_programming" title="Imperative programming">imperative</a> <a href="/wiki/Procedural_programming" title="Procedural programming">procedural</a> language, supporting <a href="/wiki/Structured_programming" title="Structured programming">structured programming</a>, <a href="/wiki/Lexical_variable_scope" class="mw-redirect" title="Lexical variable scope">lexical variable scope</a>, and <a href="/wiki/Recursion_(computer_science)" title="Recursion (computer science)">recursion</a>, with a <a href="/wiki/Static_type_system" class="mw-redirect" title="Static type system">static type system</a>. It was designed to be <a href="/wiki/Compiled" class="mw-redirect" title="Compiled">compiled</a> to provide <a href="/wiki/Low-level_programming_language" title="Low-level programming language">low-level</a> access to <a href="/wiki/Computer_memory" title="Computer memory">memory</a> and language constructs that map efficiently to <a href="/wiki/Machine_instructions" class="mw-redirect" title="Machine instructions">machine instructions</a>, all with minimal <a href="/wiki/Runtime_system" title="Runtime system">runtime support</a>. Despite its low-level capabilities, the language was designed to encourage cross-platform programming. A <a href="/wiki/Specification_(technical_standard)" title="Specification (technical standard)">standards</a>-compliant C program written with <a href="/wiki/Software_portability" title="Software portability">portability</a> in mind can be compiled for a wide variety of computer platforms and operating systems with few changes to its source code. </p><p>Since 2000, C has consistently ranked among the top four languages in the <a href="/wiki/TIOBE_index" title="TIOBE index">TIOBE index</a>, a measure of the popularity of programming languages.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup> </p> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"><input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none"><div class="toctitle" lang="en" dir="ltr"><h2 id="mw-toc-heading">Contents</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span></div> <ul> <li class="toclevel-1 tocsection-1"><a href="#Overview"><span class="tocnumber">1</span> <span class="toctext">Overview</span></a> <ul> <li class="toclevel-2 tocsection-2"><a href="#Relations_to_other_languages"><span class="tocnumber">1.1</span> <span class="toctext">Relations to other languages</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-3"><a href="#History"><span class="tocnumber">2</span> <span class="toctext">History</span></a> <ul> <li class="toclevel-2 tocsection-4"><a href="#Early_developments"><span class="tocnumber">2.1</span> <span class="toctext">Early developments</span></a> <ul> <li class="toclevel-3 tocsection-5"><a href="#B"><span class="tocnumber">2.1.1</span> <span class="toctext">B</span></a></li> <li class="toclevel-3 tocsection-6"><a href="#New_B_and_first_C_release"><span class="tocnumber">2.1.2</span> <span class="toctext">New B and first C release</span></a></li> <li class="toclevel-3 tocsection-7"><a href="#Structures_and_Unix_kernel_re-write"><span class="tocnumber">2.1.3</span> <span class="toctext">Structures and Unix kernel re-write</span></a></li> </ul> </li> <li class="toclevel-2 tocsection-8"><a href="#K&R_C"><span class="tocnumber">2.2</span> <span class="toctext">K&R C</span></a></li> <li class="toclevel-2 tocsection-9"><a href="#ANSI_C_and_ISO_C"><span class="tocnumber">2.3</span> <span class="toctext">ANSI C and ISO C</span></a></li> <li class="toclevel-2 tocsection-10"><a href="#C99"><span class="tocnumber">2.4</span> <span class="toctext">C99</span></a></li> <li class="toclevel-2 tocsection-11"><a href="#C11"><span class="tocnumber">2.5</span> <span class="toctext">C11</span></a></li> <li class="toclevel-2 tocsection-12"><a href="#C17"><span class="tocnumber">2.6</span> <span class="toctext">C17</span></a></li> <li class="toclevel-2 tocsection-13"><a href="#C23"><span class="tocnumber">2.7</span> <span class="toctext">C23</span></a></li> <li class="toclevel-2 tocsection-14"><a href="#C2Y"><span class="tocnumber">2.8</span> <span class="toctext">C2Y</span></a></li> <li class="toclevel-2 tocsection-15"><a href="#Embedded_C"><span class="tocnumber">2.9</span> <span class="toctext">Embedded C</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-16"><a href="#Syntax"><span class="tocnumber">3</span> <span class="toctext">Syntax</span></a> <ul> <li class="toclevel-2 tocsection-17"><a href="#Character_set"><span class="tocnumber">3.1</span> <span class="toctext">Character set</span></a></li> <li class="toclevel-2 tocsection-18"><a href="#Reserved_words"><span class="tocnumber">3.2</span> <span class="toctext">Reserved words</span></a></li> <li class="toclevel-2 tocsection-19"><a href="#Operators"><span class="tocnumber">3.3</span> <span class="toctext">Operators</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-20"><a href="#%22Hello,_world%22_example"><span class="tocnumber">4</span> <span class="toctext">"Hello, world" example</span></a></li> <li class="toclevel-1 tocsection-21"><a href="#Data_types"><span class="tocnumber">5</span> <span class="toctext">Data types</span></a> <ul> <li class="toclevel-2 tocsection-22"><a href="#Pointers"><span class="tocnumber">5.1</span> <span class="toctext">Pointers</span></a></li> <li class="toclevel-2 tocsection-23"><a href="#Arrays"><span class="tocnumber">5.2</span> <span class="toctext">Arrays</span></a></li> <li class="toclevel-2 tocsection-24"><a href="#Array%E2%80%93pointer_interchangeability"><span class="tocnumber">5.3</span> <span class="toctext">Array–pointer interchangeability</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-25"><a href="#Memory_management"><span class="tocnumber">6</span> <span class="toctext">Memory management</span></a></li> <li class="toclevel-1 tocsection-26"><a href="#Libraries"><span class="tocnumber">7</span> <span class="toctext">Libraries</span></a> <ul> <li class="toclevel-2 tocsection-27"><a href="#File_handling_and_streams"><span class="tocnumber">7.1</span> <span class="toctext">File handling and streams</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-28"><a href="#Language_tools"><span class="tocnumber">8</span> <span class="toctext">Language tools</span></a></li> <li class="toclevel-1 tocsection-29"><a href="#Uses"><span class="tocnumber">9</span> <span class="toctext">Uses</span></a> <ul> <li class="toclevel-2 tocsection-30"><a href="#Rationale_for_use_in_systems_programming"><span class="tocnumber">9.1</span> <span class="toctext">Rationale for use in systems programming</span></a></li> <li class="toclevel-2 tocsection-31"><a href="#Used_for_computationally-intensive_libraries"><span class="tocnumber">9.2</span> <span class="toctext">Used for computationally-intensive libraries</span></a></li> <li class="toclevel-2 tocsection-32"><a href="#C_as_an_intermediate_language"><span class="tocnumber">9.3</span> <span class="toctext">C as an intermediate language</span></a></li> <li class="toclevel-2 tocsection-33"><a href="#Other_languages_written_in_C"><span class="tocnumber">9.4</span> <span class="toctext">Other languages written in C</span></a></li> <li class="toclevel-2 tocsection-34"><a href="#Once_used_for_web_development"><span class="tocnumber">9.5</span> <span class="toctext">Once used for web development</span></a></li> <li class="toclevel-2 tocsection-35"><a href="#Web_servers"><span class="tocnumber">9.6</span> <span class="toctext">Web servers</span></a></li> <li class="toclevel-2 tocsection-36"><a href="#End-user_applications"><span class="tocnumber">9.7</span> <span class="toctext">End-user applications</span></a></li> </ul> </li> <li class="toclevel-1 tocsection-37"><a href="#Limitations"><span class="tocnumber">10</span> <span class="toctext">Limitations</span></a></li> <li class="toclevel-1 tocsection-38"><a href="#Related_languages"><span class="tocnumber">11</span> <span class="toctext">Related languages</span></a></li> <li class="toclevel-1 tocsection-39"><a href="#See_also"><span class="tocnumber">12</span> <span class="toctext">See also</span></a></li> <li class="toclevel-1 tocsection-40"><a href="#Notes"><span class="tocnumber">13</span> <span class="toctext">Notes</span></a></li> <li class="toclevel-1 tocsection-41"><a href="#References"><span class="tocnumber">14</span> <span class="toctext">References</span></a></li> <li class="toclevel-1 tocsection-42"><a href="#Sources"><span class="tocnumber">15</span> <span class="toctext">Sources</span></a></li> <li class="toclevel-1 tocsection-43"><a href="#Further_reading"><span class="tocnumber">16</span> <span class="toctext">Further reading</span></a></li> <li class="toclevel-1 tocsection-44"><a href="#External_links"><span class="tocnumber">17</span> <span class="toctext">External links</span></a></li> </ul> </div> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(1)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Overview">Overview</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=1" title="Edit section: Overview" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-1 collapsible-block" id="mf-section-1"> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Ken_Thompson_and_Dennis_Ritchie--1973.jpg" class="mw-file-description"><noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Ken_Thompson_and_Dennis_Ritchie--1973.jpg/220px-Ken_Thompson_and_Dennis_Ritchie--1973.jpg" decoding="async" width="220" height="143" class="mw-file-element" data-file-width="310" data-file-height="201"></noscript><span class="lazy-image-placeholder" style="width: 220px;height: 143px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Ken_Thompson_and_Dennis_Ritchie--1973.jpg/220px-Ken_Thompson_and_Dennis_Ritchie--1973.jpg" data-width="220" data-height="143" data-srcset="//upload.wikimedia.org/wikipedia/commons/1/1b/Ken_Thompson_and_Dennis_Ritchie--1973.jpg 1.5x" data-class="mw-file-element"> </span></a><figcaption><a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> (right), the inventor of the C programming language, with <a href="/wiki/Ken_Thompson" title="Ken Thompson">Ken Thompson</a></figcaption></figure> <p>C is an <a href="/wiki/Imperative_programming" title="Imperative programming">imperative</a>, procedural language in the <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> tradition. It has a static <a href="/wiki/Type_system" title="Type system">type system</a>. In C, all <a href="/wiki/Executable_code" class="mw-redirect" title="Executable code">executable code</a> is contained within <a href="/wiki/Subroutine" class="mw-redirect" title="Subroutine">subroutines</a> (also called "functions", though not in the sense of <a href="/wiki/Functional_programming" title="Functional programming">functional programming</a>). <a href="/wiki/Function_parameter" class="mw-redirect" title="Function parameter">Function parameters</a> are passed by value, although <a href="/wiki/Array_(data_type)" title="Array (data type)">arrays</a> are passed as <a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>, i.e. the address of the first item in the array. <i>Pass-by-reference</i> is simulated in C by explicitly passing pointers to the thing being referenced. </p><p>C program source text is <a href="/wiki/Free-form_language" title="Free-form language">free-form</a> code. <a href="/wiki/Semicolon" title="Semicolon">Semicolons</a> terminate <a href="/wiki/Statement_(programming)" class="mw-redirect" title="Statement (programming)">statements</a>, while <a href="/wiki/Curly_braces" class="mw-redirect" title="Curly braces">curly braces</a> are used to group statements into <a href="/wiki/Block_(programming)" title="Block (programming)">blocks</a>. </p><p>The C language also exhibits the following characteristics: </p> <ul><li>The language has a small, fixed number of keywords, including a full set of <a href="/wiki/Control_flow" title="Control flow">control flow</a> primitives: <code><a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">if/else</a></code>, <code><a href="/wiki/For_loop" title="For loop">for</a></code>, <code><a href="/wiki/Do_while_loop" title="Do while loop">do/while</a></code>, <code><a href="/wiki/While_loop" title="While loop">while</a></code>, and <code><a href="/wiki/Switch_statement" title="Switch statement">switch</a></code>. User-defined names are not distinguished from keywords by any kind of <a href="/wiki/Sigil_(computer_programming)" title="Sigil (computer programming)">sigil</a>.</li> <li>It has a large number of arithmetic, <a href="/wiki/Bitwise" class="mw-redirect" title="Bitwise">bitwise</a>, and logic operators: <code>+</code>,<code>+=</code>,<code>++</code>,<code>&</code>,<code>||</code>, etc.</li> <li>More than one <a href="/wiki/Assignment_(computer_science)" title="Assignment (computer science)">assignment</a> may be performed in a single statement.</li> <li>Functions: <ul><li>Function return values can be ignored, when not needed.</li> <li>Function and data pointers permit <i>ad hoc</i> <a href="/wiki/Run-time_polymorphism" class="mw-redirect" title="Run-time polymorphism">run-time polymorphism</a>.</li> <li>Functions may not be defined within the lexical scope of other functions.</li> <li>Variables may be defined within a function, with <a href="/wiki/Lexical_variable_scope" class="mw-redirect" title="Lexical variable scope">scope</a>.</li> <li>A function may call itself, so <a href="/wiki/Recursion_(computer_science)" title="Recursion (computer science)">recursion</a> is supported.</li></ul></li> <li>Data typing is <a href="/wiki/Static_typing" class="mw-redirect" title="Static typing">static</a>, but <a href="/wiki/Strong_and_weak_typing" title="Strong and weak typing">weakly enforced</a>; all data has a type, but <a href="/wiki/Implicit_conversion" class="mw-redirect" title="Implicit conversion">implicit conversions</a> are possible.</li> <li>User-defined (<a href="/wiki/Typedef" title="Typedef">typedef</a>) and compound types are possible. <ul><li>Heterogeneous aggregate data types (<code><a href="/wiki/Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code>) allow related data elements to be accessed and assigned as a unit. The contents of whole structs cannot be compared using a single built-in operator (the elements must be compared individually).</li> <li><a href="/wiki/Union_type" title="Union type">Union</a> is a structure with overlapping members; it allows multiple data types to share the same memory location.</li> <li><a href="/wiki/Array_(data_type)" title="Array (data type)">Array</a> indexing is a secondary notation, defined in terms of pointer arithmetic. Whole arrays cannot be assigned or compared using a single built-in operator. There is no "array" keyword in use or definition; instead, square brackets indicate arrays syntactically, for example <code>month[11]</code>.</li> <li><a href="/wiki/Enumerated_type" title="Enumerated type">Enumerated types</a> are possible with the <code>enum</code> keyword. They are freely interconvertible with integers.</li> <li><a href="/wiki/String_(computer_science)" title="String (computer science)">Strings</a> are not a distinct data type, but are conventionally <a href="/wiki/C_string_handling" title="C string handling">implemented</a> as <a href="/wiki/Null-terminated_string" title="Null-terminated string">null-terminated</a> character arrays.</li></ul></li> <li>Low-level access to <a href="/wiki/Computer_memory" title="Computer memory">computer memory</a> is possible by converting machine addresses to <a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>.</li> <li><a href="/wiki/Procedure_(computer_science)" class="mw-redirect" title="Procedure (computer science)">Procedures</a> (subroutines not returning values) are a special case of function, with an empty return type <code>void</code>.</li> <li>Memory can be <a href="/wiki/Dynamic_allocation" class="mw-redirect" title="Dynamic allocation">allocated</a> to a program with calls to <a href="/wiki/Library_routine" class="mw-redirect" title="Library routine">library routines</a>.</li> <li>A <a href="/wiki/C_preprocessor" title="C preprocessor">preprocessor</a> performs <a href="/wiki/Macro_(computer_science)" title="Macro (computer science)">macro</a> definition, <a href="/wiki/Source_code" title="Source code">source code</a> file inclusion, and <a href="/wiki/Conditional_compilation" title="Conditional compilation">conditional compilation</a>.</li> <li>There is a basic form of <a href="/wiki/Modular_programming" title="Modular programming">modularity</a>: files can be compiled separately and <a href="/wiki/Linker_(computing)" title="Linker (computing)">linked</a> together, with control over which functions and data objects are visible to other files via <a href="/wiki/Static_(keyword)" title="Static (keyword)"><code>static</code></a> and <code>extern</code> attributes.</li> <li>Complex functionality such as <a href="/wiki/Input/output" title="Input/output">I/O</a>, <a href="/wiki/String_(computer_science)" title="String (computer science)">string</a> manipulation, and mathematical functions are consistently delegated to <a href="/wiki/Library_routine" class="mw-redirect" title="Library routine">library routines</a>.</li> <li>The generated code after compilation has relatively straightforward needs on the underlying platform, which makes it suitable for creating operating systems and for use in <a href="/wiki/Embedded_system" title="Embedded system">embedded systems</a>.</li></ul> <p>While C does not include certain features found in other languages (such as <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object orientation</a> and <a href="/wiki/Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a>), these can be implemented or emulated, often through the use of external libraries (e.g., the <a href="/wiki/GLib_Object_System" class="mw-redirect" title="GLib Object System">GLib Object System</a> or the <a href="/wiki/Boehm_garbage_collector" title="Boehm garbage collector">Boehm garbage collector</a>). </p> <div class="mw-heading mw-heading3"><h3 id="Relations_to_other_languages">Relations to other languages</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=2" title="Edit section: Relations to other languages" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/List_of_C-family_programming_languages" title="List of C-family programming languages">List of C-family programming languages</a></div> <p>Many later languages have borrowed directly or indirectly from C, including <a href="/wiki/C%2B%2B" title="C++">C++</a>, <a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>, Unix's <a href="/wiki/C_shell" title="C shell">C shell</a>, <a href="/wiki/D_(programming_language)" title="D (programming language)">D</a>, <a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a>, <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a> (including <a href="/wiki/JavaScript#transpilers" title="JavaScript">transpilers</a>), <a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="/wiki/Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a>, <a href="/wiki/LPC_(programming_language)" class="mw-redirect" title="LPC (programming language)">LPC</a>, <a href="/wiki/Objective-C" title="Objective-C">Objective-C</a>, <a href="/wiki/Perl" title="Perl">Perl</a>, <a href="/wiki/PHP" title="PHP">PHP</a>, <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>, <a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a>, <a href="/wiki/Swift_(programming_language)" title="Swift (programming language)">Swift</a>, <a href="/wiki/Verilog" title="Verilog">Verilog</a> and <a href="/wiki/SystemVerilog" title="SystemVerilog">SystemVerilog</a> (hardware description languages).<sup id="cite_ref-vinsp_5-1" class="reference"><a href="#cite_note-vinsp-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> These languages have drawn many of their <a href="/wiki/Control_structures" class="mw-redirect" title="Control structures">control structures</a> and other basic features from C. Most of them also express highly similar <a href="/wiki/Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a> to C, and they tend to combine the recognizable expression and statement <a href="/wiki/C_syntax" title="C syntax">syntax of C</a> with underlying type systems, data models, and semantics that can be radically different. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(2)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="History">History</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=3" title="Edit section: History" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-2 collapsible-block" id="mf-section-2"> <div class="mw-heading mw-heading3"><h3 id="Early_developments">Early developments</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=4" title="Edit section: Early developments" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <table class="wikitable floatright" style="margin-left: 1.5em;"> <caption>Timeline of C language </caption> <tbody><tr> <th>Year </th> <th>Informal<br>name </th> <th>Official<br>standard </th></tr> <tr> <td>1972 </td> <td>first release </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td>1978 </td> <td><a href="/wiki/K%26R_C" class="mw-redirect" title="K&R C">K&R C</a> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr> <tr> <td>1989,<br>1990 </td> <td><a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a>, C89,<br>ISO C, C90 </td> <td>ANSI X3.159-1989<br>ISO/IEC 9899:1990 </td></tr> <tr> <td>1999 </td> <td><a href="/wiki/C99" title="C99">C99</a>, C9X </td> <td>ISO/IEC 9899:1999 </td></tr> <tr> <td>2011 </td> <td><a href="/wiki/C11_(C_standard_revision)" title="C11 (C standard revision)">C11</a>, C1X </td> <td>ISO/IEC 9899:2011 </td></tr> <tr> <td>2018 </td> <td><a href="/wiki/C17_(C_standard_revision)" title="C17 (C standard revision)">C17</a>, C18 </td> <td>ISO/IEC 9899:2018 </td></tr> <tr> <td>2024 </td> <td><a href="/wiki/C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a>, C2X </td> <td>ISO/IEC 9899:2024 </td></tr> <tr> <td>Future </td> <td><a href="#C2Y">C2Y</a> </td> <td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">— </td></tr></tbody></table> <p>The origin of C is closely tied to the development of the <a href="/wiki/Unix" title="Unix">Unix</a> operating system, originally implemented in <a href="/wiki/Assembly_language" title="Assembly language">assembly language</a> on a <a href="/wiki/PDP-7" title="PDP-7">PDP-7</a> by <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> and <a href="/wiki/Ken_Thompson" title="Ken Thompson">Ken Thompson</a>, incorporating several ideas from colleagues. Eventually, they decided to port the operating system to a <a href="/wiki/PDP-11" title="PDP-11">PDP-11</a>. The original PDP-11 version of Unix was also developed in assembly language.<sup id="cite_ref-sigplan_9-1" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading4"><h4 id="B">B</h4><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=5" title="Edit section: B" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/B_(programming_language)" title="B (programming language)">B (programming language)</a></div> <p>Thompson wanted a programming language for developing utilities for the new platform. He first tried writing a <a href="/wiki/Fortran" title="Fortran">Fortran</a> compiler, but he soon gave up the idea and instead created a cut-down version of the recently developed <a href="/wiki/Systems_programming_language" class="mw-redirect" title="Systems programming language">systems programming language</a> called <a href="/wiki/BCPL" title="BCPL">BCPL</a>. The official description of BCPL was not available at the time,<sup id="cite_ref-NFDsZ_14-0" class="reference"><a href="#cite_note-NFDsZ-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> and Thompson modified the syntax to be less 'wordy' and similar to a simplified <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> known as SMALGOL.<sup id="cite_ref-Ars_15-0" class="reference"><a href="#cite_note-Ars-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> He called the result <a href="/wiki/B_(programming_language)" title="B (programming language)"><i>B</i></a>,<sup id="cite_ref-sigplan_9-2" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> describing it as "BCPL semantics with a lot of SMALGOL syntax".<sup id="cite_ref-Ars_15-1" class="reference"><a href="#cite_note-Ars-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> Like BCPL, B had a <a href="/wiki/Bootstrapping" title="Bootstrapping">bootstrapping</a> compiler to facilitate porting to new machines.<sup id="cite_ref-Ars_15-2" class="reference"><a href="#cite_note-Ars-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> Ultimately, few utilities were written in B because it was too slow and could not take advantage of PDP-11 features such as <a href="/wiki/Byte" title="Byte">byte</a> addressability. </p> <div class="mw-heading mw-heading4"><h4 id="New_B_and_first_C_release">New B and first C release</h4><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=6" title="Edit section: New B and first C release" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>In 1971 Ritchie started to improve B, to use the features of the more-powerful PDP-11. A significant addition was a character data type. He called this <i>New B</i> (NB).<sup id="cite_ref-Ars_15-3" class="reference"><a href="#cite_note-Ars-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup> Thompson started to use NB to write the <a href="/wiki/Research_Unix" title="Research Unix">Unix</a> kernel, and his requirements shaped the direction of the language development.<sup id="cite_ref-Ars_15-4" class="reference"><a href="#cite_note-Ars-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-unixport_16-0" class="reference"><a href="#cite_note-unixport-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> Through to 1972, richer types were added to the NB language: NB had arrays of <code>int</code> and <code>char</code>. Pointers, the ability to generate pointers to other types, arrays of all types, and types to be returned from functions were all also added. Arrays within expressions became pointers. A new compiler was written, and the language was renamed C.<sup id="cite_ref-sigplan_9-3" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> </p><p>The C compiler and some utilities made with it were included in <a href="/wiki/Version_2_Unix" class="mw-redirect" title="Version 2 Unix">Version 2 Unix</a>, which is also known as <a href="/wiki/Research_Unix" title="Research Unix">Research Unix</a>.<sup id="cite_ref-QtqTh_17-0" class="reference"><a href="#cite_note-QtqTh-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading4"><h4 id="Structures_and_Unix_kernel_re-write">Structures and Unix kernel re-write</h4><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=7" title="Edit section: Structures and Unix kernel re-write" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>At <a href="/wiki/Version_4_Unix" class="mw-redirect" title="Version 4 Unix">Version 4 Unix</a>, released in November 1973, the <a href="/wiki/Unix" title="Unix">Unix</a> <a href="/wiki/Kernel_(operating_system)" title="Kernel (operating system)">kernel</a> was extensively re-implemented in C.<sup id="cite_ref-sigplan_9-4" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> By this time, the C language had acquired some powerful features such as <code>struct</code> types. </p><p>The <a href="/wiki/C_preprocessor" title="C preprocessor">preprocessor</a> was introduced around 1973 at the urging of <a href="/w/index.php?title=Alan_Snyder_(computer_scientist)&action=edit&redlink=1" class="new" title="Alan Snyder (computer scientist) (page does not exist)">Alan Snyder</a> and also in recognition of the usefulness of the file-inclusion mechanisms available in BCPL and <a href="/wiki/PL/I" title="PL/I">PL/I</a>. Its original version provided only included files and simple string replacements: <code>#include</code> and <code>#define</code> of parameterless macros. Soon after that, it was extended, mostly by <a href="/wiki/Mike_Lesk" title="Mike Lesk">Mike Lesk</a> and then by John Reiser, to incorporate macros with arguments and <a href="/wiki/Conditional_compilation" title="Conditional compilation">conditional compilation</a>.<sup id="cite_ref-sigplan_9-5" class="reference"><a href="#cite_note-sigplan-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> </p><p>Unix was one of the first operating system kernels implemented in a language other than <a href="/wiki/Assembly_language" title="Assembly language">assembly</a>. Earlier instances include the <a href="/wiki/Multics" title="Multics">Multics</a> system (which was written in <a href="/wiki/PL/I" title="PL/I">PL/I</a>) and <a href="/wiki/Master_Control_Program" class="mw-redirect" title="Master Control Program">Master Control Program</a> (MCP) for the <a href="/wiki/Burroughs_large_systems" class="mw-redirect" title="Burroughs large systems">Burroughs B5000</a> (which was written in <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a>) in 1961. In around 1977, Ritchie and <a href="/wiki/Stephen_C._Johnson" title="Stephen C. Johnson">Stephen C. Johnson</a> made further changes to the language to facilitate <a href="/wiki/Software_portability" title="Software portability">portability</a> of the Unix operating system. Johnson's <a href="/wiki/Portable_C_Compiler" title="Portable C Compiler">Portable C Compiler</a> served as the basis for several implementations of C on new platforms.<sup id="cite_ref-unixport_16-1" class="reference"><a href="#cite_note-unixport-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="K&R_C"><span id="K.26R_C"></span>K&R C</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=8" title="Edit section: K&R C" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <figure typeof="mw:File/Thumb"><a href="/wiki/File:The_C_Programming_Language,_First_Edition_Cover.svg" class="mw-file-description"><noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/The_C_Programming_Language%2C_First_Edition_Cover.svg/171px-The_C_Programming_Language%2C_First_Edition_Cover.svg.png" decoding="async" width="171" height="240" class="mw-file-element" data-file-width="1000" data-file-height="1405"></noscript><span class="lazy-image-placeholder" style="width: 171px;height: 240px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/The_C_Programming_Language%2C_First_Edition_Cover.svg/171px-The_C_Programming_Language%2C_First_Edition_Cover.svg.png" data-width="171" data-height="240" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/The_C_Programming_Language%2C_First_Edition_Cover.svg/256px-The_C_Programming_Language%2C_First_Edition_Cover.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0e/The_C_Programming_Language%2C_First_Edition_Cover.svg/341px-The_C_Programming_Language%2C_First_Edition_Cover.svg.png 2x" data-class="mw-file-element"> </span></a><figcaption>The cover of the book <i>The C Programming Language</i>, first edition, by <a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a> and <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a></figcaption></figure> <p>In 1978 <a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a> and <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> published the first edition of <i><a href="/wiki/The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>.<sup id="cite_ref-k&r1e_18-0" class="reference"><a href="#cite_note-k&r1e-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> Known as <i>K&R</i> from the initials of its authors, the book served for many years as an informal <a href="/wiki/Specification_(technical_standard)" title="Specification (technical standard)">specification</a> of the language. The version of C that it describes is commonly referred to as "<b>K&R C</b>". As this was released in 1978, it is now also referred to as <i>C78</i>.<sup id="cite_ref-qOvzA_19-0" class="reference"><a href="#cite_note-qOvzA-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> The second edition of the book<sup id="cite_ref-k&r2e_20-0" class="reference"><a href="#cite_note-k&r2e-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> covers the later <a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a> standard, described below. </p><p><i>K&R</i> introduced several language features: </p> <ul><li><a href="/wiki/C_file_input/output" title="C file input/output">Standard I/O library</a></li> <li><code><a href="/wiki/Long_int" class="mw-redirect" title="Long int">long int</a></code> data type</li> <li><code>unsigned int</code> data type</li> <li>Compound assignment operators of the form <code>=<i>op</i></code> (such as <code>=-</code>) were changed to the form <code><i>op</i>=</code> (that is, <code>-=</code>) to remove the semantic ambiguity created by constructs such as <code>i=-10</code>, which had been interpreted as <code>i =- 10</code> (decrement <code>i</code> by 10) instead of the possibly intended <code>i = -10</code> (let <code>i</code> be −10).</li></ul> <p>Even after the publication of the 1989 ANSI standard, for many years K&R C was still considered the "<a href="/wiki/Lowest_common_denominator_(computers)" class="mw-redirect" title="Lowest common denominator (computers)">lowest common denominator</a>" to which C programmers restricted themselves when maximum portability was desired, since many older compilers were still in use, and because carefully written K&R C code can be legal Standard C as well. </p><p>In early versions of C, only functions that return types other than <code>int</code> must be declared if used before the function definition; functions used without prior declaration were presumed to return type <code>int</code>. </p><p>For example: </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">long</span><span class="w"> </span><span class="nf">some_function</span><span class="p">();</span><span class="w"> </span><span class="cm">/* This is a function declaration, so the compiler can know the name and return type of this function. */</span> <span class="cm">/* int */</span><span class="w"> </span><span class="n">other_function</span><span class="p">();</span><span class="w"> </span><span class="cm">/* Another function declaration. Because this is an early version of C, there is an implicit 'int' type here. A comment shows where the explicit 'int' type specifier would be required in later versions. */</span> <span class="cm">/* int */</span><span class="w"> </span><span class="n">calling_function</span><span class="p">()</span><span class="w"> </span><span class="cm">/* This is a function definition, including the body of the code following in the { curly brackets }. Because no return type is specified, the function implicitly returns an 'int' in this early version of C. */</span> <span class="p">{</span> <span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">test1</span><span class="p">;</span> <span class="w"> </span><span class="k">register</span><span class="w"> </span><span class="cm">/* int */</span><span class="w"> </span><span class="n">test2</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Again, note that 'int' is not required here. The 'int' type specifier */</span> <span class="w"> </span><span class="cm">/* in the comment would be required in later versions of C. */</span> <span class="w"> </span><span class="cm">/* The 'register' keyword indicates to the compiler that this variable should */</span> <span class="w"> </span><span class="cm">/* ideally be stored in a register as opposed to within the stack frame. */</span> <span class="w"> </span><span class="n">test1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">some_function</span><span class="p">();</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">test1</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> <span class="w"> </span><span class="n">test2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="n">test2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">other_function</span><span class="p">();</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">test2</span><span class="p">;</span> <span class="p">}</span> </pre></div> <p>The <code>int</code> type specifiers which are commented out could be omitted in K&R C, but are required in later standards. </p><p>Since K&R function declarations did not include any information about function arguments, function parameter <a href="/wiki/Type_checking" class="mw-redirect" title="Type checking">type checks</a> were not performed, although some compilers would issue a warning message if a local function was called with the wrong number of arguments, or if different calls to an external function used different numbers or types of arguments. Separate tools such as Unix's <a href="/wiki/Lint_programming_tool" class="mw-redirect" title="Lint programming tool">lint</a> utility were developed that (among other things) could check for consistency of function use across multiple source files. </p><p>In the years following the publication of K&R C, several features were added to the language, supported by compilers from AT&T (in particular <a href="/wiki/Portable_C_Compiler" title="Portable C Compiler">PCC</a><sup id="cite_ref-SkKfZ_21-0" class="reference"><a href="#cite_note-SkKfZ-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup>) and some other vendors. These included: </p> <ul><li><code><a href="/wiki/Void_type" title="Void type">void</a></code> functions (i.e., functions with no return value)</li> <li>functions returning <code><a href="/wiki/Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code> or <code><a href="/wiki/Union_(computer_science)" class="mw-redirect" title="Union (computer science)">union</a></code> types (previously only a single pointer, integer or float could be returned)</li> <li><a href="/wiki/Assignment_(computer_science)" title="Assignment (computer science)">assignment</a> for <code>struct</code> data types</li> <li><a href="/wiki/Enumerated_type" title="Enumerated type">enumerated types</a> (previously, preprocessor definitions for integer fixed values were used, e.g. <code>#define GREEN 3</code>)</li></ul> <p>The large number of extensions and lack of agreement on a <a href="/wiki/C_standard_library" title="C standard library">standard library</a>, together with the language popularity and the fact that not even the Unix compilers precisely implemented the K&R specification, led to the necessity of standardization.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="ANSI_C_and_ISO_C">ANSI C and ISO C</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=9" title="Edit section: ANSI C and ISO C" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a></div> <p>During the late 1970s and 1980s, versions of C were implemented for a wide variety of <a href="/wiki/Mainframe_computer" title="Mainframe computer">mainframe computers</a>, <a href="/wiki/Minicomputer" title="Minicomputer">minicomputers</a>, and <a href="/wiki/Microcomputer" title="Microcomputer">microcomputers</a>, including the <a href="/wiki/IBM_PC" class="mw-redirect" title="IBM PC">IBM PC</a>, as its popularity began to increase significantly. </p><p>In 1983 the <a href="/wiki/American_National_Standards_Institute" title="American National Standards Institute">American National Standards Institute</a> (ANSI) formed a committee, X3J11, to establish a standard specification of C. X3J11 based the C standard on the Unix implementation; however, the non-portable portion of the Unix C library was handed off to the <a href="/wiki/IEEE" class="mw-redirect" title="IEEE">IEEE</a> <a href="/wiki/Working_group" title="Working group">working group</a> 1003 to become the basis for the 1988 <a href="/wiki/POSIX" title="POSIX">POSIX</a> standard. In 1989, the C standard was ratified as ANSI X3.159-1989 "Programming Language C". This version of the language is often referred to as <a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a>, Standard C, or sometimes C89. </p><p>In 1990 the ANSI C standard (with formatting changes) was adopted by the <a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">International Organization for Standardization</a> (ISO) as ISO/IEC 9899:1990, which is sometimes called C90. Therefore, the terms "C89" and "C90" refer to the same programming language. </p><p>ANSI, like other national standards bodies, no longer develops the C standard independently, but defers to the international C standard, maintained by the working group <a href="/wiki/ISO/IEC_JTC1/SC22" class="mw-redirect" title="ISO/IEC JTC1/SC22">ISO/IEC JTC1/SC22</a>/WG14. National adoption of an update to the international standard typically occurs within a year of ISO publication. </p><p>One of the aims of the C standardization process was to produce a <a href="/wiki/Superset" class="mw-redirect" title="Superset">superset</a> of K&R C, incorporating many of the subsequently introduced unofficial features. The standards committee also included several additional features such as <a href="/wiki/Function_prototype" title="Function prototype">function prototypes</a> (borrowed from C++), <code>void</code> pointers, support for international <a href="/wiki/Character_sets" class="mw-redirect" title="Character sets">character sets</a> and <a href="/wiki/Locale_(computer_software)" title="Locale (computer software)">locales</a>, and preprocessor enhancements. Although the <a href="/wiki/C_syntax" title="C syntax">syntax</a> for parameter declarations was augmented to include the style used in C++, the K&R interface continued to be permitted, for compatibility with existing source code. </p><p>C89 is supported by current C compilers, and most modern C code is based on it. Any program written only in Standard C and without any hardware-dependent assumptions will run correctly on any <a href="/wiki/Computing_platform" title="Computing platform">platform</a> with a conforming C implementation, within its resource limits. Without such precautions, 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 <a href="/wiki/GUI" class="mw-redirect" title="GUI">GUI</a> libraries, or to a reliance on compiler- or platform-specific attributes such as the exact size of data types and byte <a href="/wiki/Endianness" title="Endianness">endianness</a>. </p><p>In cases where code must be compilable by either standard-conforming or K&R C-based compilers, the <code>__STDC__</code> macro can be used to split the code into Standard and K&R sections to prevent the use on a K&R C-based compiler of features available only in Standard C. </p><p>After the ANSI/ISO standardization process, the C language specification remained relatively static for several years. In 1995, Normative Amendment 1 to the 1990 C standard (ISO/IEC 9899/AMD1:1995, known informally as C95) was published, to correct some details and to add more extensive support for international character sets.<sup id="cite_ref-NWUon_23-0" class="reference"><a href="#cite_note-NWUon-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="C99">C99</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=10" title="Edit section: C99" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C99" title="C99">C99</a></div> <p>The C standard was further revised in the late 1990s, leading to the publication of ISO/IEC 9899:1999 in 1999, which is commonly referred to as "<a href="/wiki/C99" title="C99">C99</a>". It has since been amended three times by Technical Corrigenda.<sup id="cite_ref-WG14_24-0" class="reference"><a href="#cite_note-WG14-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> </p><p>C99 introduced several new features, including <a href="/wiki/Inline_function" title="Inline function">inline functions</a>, several new <a href="/wiki/Data_type" title="Data type">data types</a> (including <code>long long int</code> and a <code>complex</code> type to represent <a href="/wiki/Complex_number" title="Complex number">complex numbers</a>), <a href="/wiki/Variable-length_array" title="Variable-length array">variable-length arrays</a> and <a href="/wiki/Flexible_array_member" title="Flexible array member">flexible array members</a>, improved support for <a href="/wiki/IEEE_754" title="IEEE 754">IEEE 754</a> floating point, support for <a href="/wiki/Variadic_macro" class="mw-redirect" title="Variadic macro">variadic macros</a> (macros of variable <a href="/wiki/Arity" title="Arity">arity</a>), and support for one-line comments beginning with <code>//</code>, as in BCPL or C++. Many of these had already been implemented as extensions in several C compilers. </p><p>C99 is for the most part backward compatible with C90, but is stricter in some ways; in particular, a declaration that lacks a type specifier no longer has <code>int</code> implicitly assumed. A standard macro <code>__STDC_VERSION__</code> is defined with value <code>199901L</code> to indicate that C99 support is available. <a href="/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>, <a href="/wiki/Solaris_Studio" class="mw-redirect" title="Solaris Studio">Solaris Studio</a>, and other C compilers now<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_items" title="Wikipedia:Manual of Style/Dates and numbers"><span title="The time period mentioned near this tag is ambiguous. (August 2022)">when?</span></a></i>]</sup> support many or all of the new features of C99. The C compiler in <a href="/wiki/Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">Microsoft Visual C++</a>, however, implements the C89 standard and those parts of C99 that are required for compatibility with <a href="/wiki/C%2B%2B11" title="C++11">C++11</a>.<sup id="cite_ref-YTKIv_25-0" class="reference"><a href="#cite_note-YTKIv-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup><sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_items" title="Wikipedia:Manual of Style/Dates and numbers"><span title="The date of the event predicted near this tag has passed. (February 2021)">needs update</span></a></i>]</sup> </p><p>In addition, the C99 standard requires support for <a href="/wiki/Identifier_(computer_languages)" title="Identifier (computer languages)">identifiers</a> using <a href="/wiki/Unicode" title="Unicode">Unicode</a> in the form of escaped characters (e.g. <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\u0040</code> or <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\U0001f431</code>) and suggests support for raw Unicode names. </p> <div class="mw-heading mw-heading3"><h3 id="C11">C11</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=11" title="Edit section: C11" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C11_(C_standard_revision)" title="C11 (C standard revision)">C11 (C standard revision)</a></div> <p>Work began in 2007 on another revision of the C standard, informally called "C1X" until its official publication of ISO/IEC 9899:2011 on December 8, 2011. The C standards committee adopted guidelines to limit the adoption of new features that had not been tested by existing implementations. </p><p>The C11 standard adds numerous new features to C and the library, including type generic macros, anonymous structures, improved Unicode support, atomic operations, multi-threading, and bounds-checked functions. It also makes some portions of the existing C99 library optional, and improves compatibility with C++. The standard macro <code>__STDC_VERSION__</code> is defined as <code>201112L</code> to indicate that C11 support is available. </p> <div class="mw-heading mw-heading3"><h3 id="C17">C17</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=12" title="Edit section: C17" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C17_(C_standard_revision)" title="C17 (C standard revision)">C17 (C standard revision)</a></div> <p>C17 is an informal name for ISO/IEC 9899:2018, a standard for the C programming language published in June 2018. It introduces no new language features, only technical corrections, and clarifications to defects in C11. The standard macro <code>__STDC_VERSION__</code> is defined as <code>201710L</code> to indicate that C17 support is available. </p> <div class="mw-heading mw-heading3"><h3 id="C23">C23</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=13" title="Edit section: C23" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C23_(C_standard_revision)" title="C23 (C standard revision)">C23 (C standard revision)</a></div> <p>C23 is an informal name for the current major C language standard revision. It was informally known as "C2X" through most of its development. C23 was published in October 2024 as ISO/IEC 9899:2024.<sup id="cite_ref-N3132_26-0" class="reference"><a href="#cite_note-N3132-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> The standard macro <code>__STDC_VERSION__</code> is defined as <code>202311L</code> to indicate that C23 support is available. </p> <div class="mw-heading mw-heading3"><h3 id="C2Y">C2Y</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=14" title="Edit section: C2Y" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>C2Y is an informal name for the next major C language standard revision, after C23 (C2X), that is hoped to be released later in the 2020s decade, hence the '2' in "C2Y". An early working draft of C2Y was released in February 2024 as N3220 by the working group <a href="/wiki/ISO/IEC_JTC1/SC22" class="mw-redirect" title="ISO/IEC JTC1/SC22">ISO/IEC JTC1/SC22</a>/WG14.<sup id="cite_ref-N3220_27-0" class="reference"><a href="#cite_note-N3220-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Embedded_C">Embedded C</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=15" title="Edit section: Embedded C" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Embedded_C" title="Embedded C">Embedded C</a></div> <p>Historically, embedded C programming requires non-standard extensions to the C language to support exotic features such as <a href="/wiki/Fixed-point_arithmetic" title="Fixed-point arithmetic">fixed-point arithmetic</a>, multiple distinct <a href="/wiki/Memory_bank" title="Memory bank">memory banks</a>, and basic I/O operations. </p><p>In 2008, the C Standards Committee published a <a href="/wiki/Technical_report" title="Technical report">technical report</a> extending the C language<sup id="cite_ref-TR18037_28-0" class="reference"><a href="#cite_note-TR18037-28"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> to address these issues by providing a common standard for all implementations to adhere to. It includes a number of features not available in normal C, such as fixed-point arithmetic, named address spaces, and basic I/O hardware addressing. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(3)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Syntax">Syntax</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=16" title="Edit section: Syntax" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-3 collapsible-block" id="mf-section-3"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C_syntax" title="C syntax">C syntax</a></div> <p>C has a <a href="/wiki/Formal_grammar" title="Formal grammar">formal grammar</a> specified by the C standard.<sup id="cite_ref-h&s5e_29-0" class="reference"><a href="#cite_note-h&s5e-29"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup> Line endings are generally not significant in C; however, line boundaries do have significance during the preprocessing phase. Comments may appear either between the delimiters <code>/*</code> and <code>*/</code>, or (since C99) following <code>//</code> until the end of the line. Comments delimited by <code>/*</code> and <code>*/</code> do not nest, and these sequences of characters are not interpreted as comment delimiters if they appear inside <a href="/wiki/String_literal" title="String literal">string</a> or character literals.<sup id="cite_ref-FOOTNOTEKernighanRitchie1988192_30-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988192-30"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup> </p><p>C source files contain declarations and function definitions. Function definitions, in turn, contain declarations and <a href="/wiki/Statement_(computer_science)" title="Statement (computer science)">statements</a>. Declarations either define new types using keywords such as <code>struct</code>, <code>union</code>, and <code>enum</code>, or assign types to and perhaps reserve storage for new variables, usually by writing the type followed by the variable name. Keywords such as <code>char</code> and <code>int</code> specify built-in types. Sections of code are enclosed in braces (<code>{</code> and <code>}</code>, sometimes called "curly brackets") to limit the scope of declarations and to act as a single statement for control structures. </p><p>As an imperative language, C uses <i>statements</i> to specify actions. The most common statement is an <i>expression statement</i>, consisting of an expression to be evaluated, followed by a semicolon; as a <a href="/wiki/Side_effect_(computer_science)" title="Side effect (computer science)">side effect</a> of the evaluation, <a href="/wiki/Function_(computer_programming)" title="Function (computer programming)">functions may be called</a> and <a href="/wiki/Assignment_(computer_science)" title="Assignment (computer science)">variables assigned</a> new values. To modify the normal sequential execution of statements, C provides several control-flow statements identified by reserved keywords. <a href="/wiki/Structured_programming" title="Structured programming">Structured programming</a> is supported by <code>if</code> ... [<code>else</code>] conditional execution and by <code>do</code> ... <code>while</code>, <code>while</code>, and <code>for</code> iterative execution (looping). The <code>for</code> statement has separate initialization, testing, and reinitialization expressions, any or all of which can be omitted. <code>break</code> and <code>continue</code> can be used within the loop. Break is used to leave the innermost enclosing loop statement and continue is used to skip to its reinitialisation. There is also a non-structured <code><a href="/wiki/Goto" title="Goto">goto</a></code> statement which branches directly to the designated <a href="/wiki/Label_(computer_science)" title="Label (computer science)">label</a> within the function. <code><a href="/wiki/Switch_statement" title="Switch statement">switch</a></code> selects a <code>case</code> to be executed based on the value of an integer expression. Different from many other languages, control-flow will <a href="/wiki/Switch_statement#Fallthrough" title="Switch statement">fall through</a> to the next <code>case</code> unless terminated by a <code>break</code>. </p><p>Expressions can use a variety of built-in operators and may contain function calls. The order in which arguments to functions and operands to most operators are evaluated is unspecified. The evaluations may even be interleaved. However, all side effects (including storage to variables) will occur before the next "<a href="/wiki/Sequence_point" title="Sequence point">sequence point</a>"; sequence points include the end of each expression statement, and the entry to and return from each function call. Sequence points also occur during evaluation of expressions containing certain operators (<code>&&</code>, <code>||</code>, <code><a href="/wiki/%3F:" class="mw-redirect" title="?:">?:</a></code> and the <a href="/wiki/Comma_operator" title="Comma operator">comma operator</a>). This permits a high degree of object code optimization by the compiler, but requires C programmers to take more care to obtain reliable results than is needed for other programming languages. </p><p>Kernighan and Ritchie say in the Introduction of <i>The C Programming Language</i>: "C, like any other language, has its blemishes. Some of the operators have the wrong precedence; some parts of the syntax could be better."<sup id="cite_ref-FOOTNOTEKernighanRitchie19783_31-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie19783-31"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> The C standard did not attempt to correct many of these blemishes, because of the impact of such changes on already existing software. </p> <div class="mw-heading mw-heading3"><h3 id="Character_set">Character set</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=17" title="Edit section: Character set" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>The basic C source character set includes the following characters: </p> <ul><li>Lowercase and uppercase letters of the <a href="/wiki/ISO_basic_Latin_alphabet" title="ISO basic Latin alphabet">ISO basic Latin alphabet</a>: <code>a</code>–<code>z</code>, <code>A</code>–<code>Z</code></li> <li>Decimal digits: <code>0</code>–<code>9</code></li> <li>Graphic characters: <code>! " # % & ' ( ) * + , - . / : ; < = > ? [ \ ] ^ _ { | } ~</code></li> <li><a href="/wiki/Whitespace_character" title="Whitespace character">Whitespace characters</a>: <i><a href="/wiki/Space_(punctuation)" title="Space (punctuation)">space</a></i>, <i><a href="/wiki/Horizontal_tab" class="mw-redirect" title="Horizontal tab">horizontal tab</a></i>, <i><a href="/wiki/Vertical_tab" class="mw-redirect" title="Vertical tab">vertical tab</a></i>, <i><a href="/wiki/Form_feed" class="mw-redirect" title="Form feed">form feed</a></i>, <i><a href="/wiki/Newline" title="Newline">newline</a></i></li></ul> <p>The <i>newline</i> character indicates the end of a text line; it need not correspond to an actual single character, although for convenience C treats it as such. </p><p>Additional multi-byte encoded characters may be used in <a href="/wiki/String_literal" title="String literal">string literals</a>, but they are not entirely <a href="/wiki/Software_portability" title="Software portability">portable</a>. The latest C standard (<a href="/wiki/C11_(C_standard_revision)" title="C11 (C standard revision)">C11</a>) allows multi-national Unicode characters to be embedded portably within C source text by using <code>\uXXXX</code> or <code>\UXXXXXXXX</code> encoding (where <code>X</code> denotes a hexadecimal character), although this feature is not yet widely implemented.<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_items" title="Wikipedia:Manual of Style/Dates and numbers"><span title="C11 superseded by C17 some years ago (October 2024)">needs update</span></a></i>]</sup> </p><p>The basic C execution character set contains the same characters, along with representations for <a href="/wiki/Bell_character" title="Bell character">alert</a>, <a href="/wiki/Backspace" title="Backspace">backspace</a>, and <a href="/wiki/Carriage_return" title="Carriage return">carriage return</a>. <a href="/wiki/Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">Run-time</a> support for extended character sets has increased with each revision of the C standard. </p> <div class="mw-heading mw-heading3"><h3 id="Reserved_words">Reserved words</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=18" title="Edit section: Reserved words" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>The following reserved words are <a href="/wiki/Case_sensitive" class="mw-redirect" title="Case sensitive">case sensitive</a>. </p><p>C89 has 32 reserved words, also known as 'keywords', which cannot be used for any purposes other than those for which they are predefined: </p> <style data-mw-deduplicate="TemplateStyles:r1184024115">.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}</style><div class="div-col" style="column-width: 13em;"> <ul><li><code>auto</code></li> <li><code><a href="/wiki/Break_statement" class="mw-redirect" title="Break statement">break</a></code></li> <li><code>case</code></li> <li><code>char</code></li> <li><code><a href="/wiki/Const" class="mw-redirect" title="Const">const</a></code></li> <li><code><a href="/wiki/Continue_(keyword)" class="mw-redirect" title="Continue (keyword)">continue</a></code></li> <li><code>default</code></li> <li><code>do</code></li> <li><code><a href="/wiki/Double-precision_floating-point_format" title="Double-precision floating-point format">double</a></code></li> <li><code><a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">else</a></code></li> <li><code><a href="/wiki/Enumerated_type" title="Enumerated type">enum</a></code></li> <li><code><a href="/wiki/Extern" class="mw-redirect" title="Extern">extern</a></code></li> <li><code><a href="/wiki/Floating-point_arithmetic" title="Floating-point arithmetic">float</a></code></li> <li><code><a href="/wiki/For_loop" title="For loop">for</a></code></li> <li><code><a href="/wiki/Goto" title="Goto">goto</a></code></li> <li><code><a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">if</a></code></li> <li><code><a href="/wiki/Integer_(computer_science)" title="Integer (computer science)">int</a></code></li> <li><code><a href="/wiki/Long_integer" class="mw-redirect" title="Long integer">long</a></code></li> <li><code><a href="/wiki/Register_(keyword)" title="Register (keyword)">register</a></code></li> <li><code><a href="/wiki/Return_statement" title="Return statement">return</a></code></li> <li><code><a href="/wiki/Short_integer" class="mw-redirect" title="Short integer">short</a></code></li> <li><code><a href="/wiki/Signed_number_representations" title="Signed number representations">signed</a></code></li> <li><code><a href="/wiki/Sizeof" title="Sizeof">sizeof</a></code></li> <li><code><a href="/wiki/Static_(keyword)" title="Static (keyword)">static</a></code></li> <li><code><a href="/wiki/Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code></li> <li><code><a href="/wiki/Switch_statement" title="Switch statement">switch</a></code></li> <li><code><a href="/wiki/Typedef" title="Typedef">typedef</a></code></li> <li><code>union</code></li> <li><code><a href="/wiki/Signed_number_representations" title="Signed number representations">unsigned</a></code></li> <li><code><a href="/wiki/Void_type" title="Void type">void</a></code></li> <li><code><a href="/wiki/Volatile_variable" class="mw-redirect" title="Volatile variable">volatile</a></code></li> <li><code><a href="/wiki/While_loop" title="While loop">while</a></code></li></ul> </div> <p>C99 added five more reserved words: (‡ indicates an alternative spelling alias for a C23 keyword) </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1184024115"><div class="div-col" style="column-width: 13em;"> <ul><li><code><a href="/wiki/Inline_function" title="Inline function">inline</a></code></li> <li><code><a href="/wiki/Restrict" title="Restrict">restrict</a></code></li> <li><code>_Bool</code> ‡</li> <li><code><a href="/wiki/Complex_data_type" title="Complex data type">_Complex</a></code></li> <li><code><a href="/wiki/Complex_data_type" title="Complex data type">_Imaginary</a></code></li></ul> </div> <p>C11 added seven more reserved words:<sup id="cite_ref-ISOIEC_9899_32-0" class="reference"><a href="#cite_note-ISOIEC_9899-32"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup> (‡ indicates an alternative spelling alias for a C23 keyword) </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1184024115"><div class="div-col" style="column-width: 13em;"> <ul><li><code>_Alignas</code> ‡</li> <li><code>_Alignof</code> ‡</li> <li><code>_Atomic</code></li> <li><code>_Generic</code></li> <li><code>_Noreturn</code></li> <li><code>_Static_assert</code> ‡</li> <li><code>_Thread_local</code> ‡</li></ul> </div> <p>C23 reserved fifteen more words: </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1184024115"><div class="div-col" style="column-width: 13em;"> <ul><li><code>alignas</code></li> <li><code>alignof</code></li> <li><code>bool</code></li> <li><code>constexpr</code></li> <li><code>false</code></li> <li><code>nullptr</code></li> <li><code>static_assert</code></li> <li><code>thread_local</code></li> <li><code>true</code></li> <li><code>typeof</code></li> <li><code>typeof_unqual</code></li> <li><code>_BitInt</code></li> <li><code>_Decimal32</code></li> <li><code>_Decimal64</code></li> <li><code>_Decimal128</code></li></ul> </div> <p>Most of the recently reserved words begin with an underscore followed by a capital letter, because identifiers of that form were previously reserved by the C standard for use only by implementations. Since existing program source code should not have been using these identifiers, it would not be affected when C implementations started supporting these extensions to the programming language. Some standard headers do define more convenient synonyms for underscored identifiers. Some of those words were added as keywords with their conventional spelling in C23 and the corresponding macros were removed. </p><p>Prior to C89, <code>entry</code> was reserved as a keyword. In the second edition of their book <i><a href="/wiki/The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>, which describes what became known as C89, Kernighan and Ritchie wrote, "The ... [keyword] <code>entry</code>, formerly reserved but never used, is no longer reserved." and "The stillborn <code>entry</code> keyword is withdrawn."<sup id="cite_ref-FOOTNOTEKernighanRitchie1988192,_259_33-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988192,_259-33"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Operators">Operators</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=19" title="Edit section: Operators" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Operators_in_C_and_C%2B%2B" title="Operators in C and C++">Operators in C and C++</a></div> <p>C supports a rich set of <a href="/wiki/Operator_(computer_programming)" title="Operator (computer programming)">operators</a>, which are symbols used within an <a href="/wiki/Expression_(computer_science)" title="Expression (computer science)">expression</a> to specify the manipulations to be performed while evaluating that expression. C has operators for: </p> <ul><li><a href="/wiki/Arithmetic" title="Arithmetic">arithmetic</a>: <a href="/wiki/Addition" title="Addition"><code>+</code></a>, <a href="/wiki/Subtraction" title="Subtraction"><code>-</code></a>, <a href="/wiki/Multiplication" title="Multiplication"><code>*</code></a>, <a href="/wiki/Division_(mathematics)" title="Division (mathematics)"><code>/</code></a>, <a href="/wiki/Modulo_operation" class="mw-redirect" title="Modulo operation"><code>%</code></a></li> <li><a href="/wiki/Assignment_(computer_science)" title="Assignment (computer science)">assignment</a>: <code>=</code></li> <li><a href="/wiki/Augmented_assignment" title="Augmented assignment">augmented assignment</a>: <code>+=</code>,<span class="nowrap"> </span><code>-=</code>,<span class="nowrap"> </span><code>*=</code>,<span class="nowrap"> </span><code>/=</code>,<span class="nowrap"> </span><code>%=</code>,<span class="nowrap"> </span><code>&=</code>,<span class="nowrap"> </span><code>|=</code>,<span class="nowrap"> </span><code>^=</code>,<span class="nowrap"> </span><code><<=</code>,<span class="nowrap"> </span><code>>>=</code></li> <li><a href="/wiki/Bitwise_logic" class="mw-redirect" title="Bitwise logic">bitwise logic</a>: <code>~</code>, <code>&</code>, <code>|</code>, <code>^</code></li> <li><a href="/wiki/Bitwise_shift" class="mw-redirect" title="Bitwise shift">bitwise shifts</a>: <code><<</code>, <code>>></code></li> <li><a href="/wiki/Boolean_logic" class="mw-redirect" title="Boolean logic">Boolean logic</a>: <code>!</code>, <code>&&</code>, <code>||</code></li> <li><a href="/wiki/%3F:" class="mw-redirect" title="?:">conditional evaluation</a>: <a href="/wiki/%3F:" class="mw-redirect" title="?:"><code>? :</code></a></li> <li>equality testing: <a href="/wiki/Equality_(mathematics)" title="Equality (mathematics)"><code>==</code></a>, <a href="/wiki/Inequality_(mathematics)" title="Inequality (mathematics)"><code>!=</code></a></li> <li><a href="/wiki/Subroutine" class="mw-redirect" title="Subroutine">calling functions</a>: <code>( )</code></li> <li><a href="/wiki/Increment_and_decrement_operators" title="Increment and decrement operators">increment and decrement</a>: <code>++</code>, <code>--</code></li> <li><a href="/wiki/Record_(computer_science)" title="Record (computer science)">member selection</a>: <code>.</code>, <code>-></code></li> <li>object size: <code><a href="/wiki/Sizeof" title="Sizeof">sizeof</a></code></li> <li>type: <code><a href="/wiki/Typeof" title="Typeof">typeof</a></code>, <code>typeof_unqual</code> <i>since C23</i></li> <li><a href="/wiki/Order_relation" class="mw-redirect" title="Order relation">order relations</a>: <code><</code>, <code><=</code>, <code>></code>, <code>>=</code></li> <li><a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">reference and dereference</a>: <code>&</code>, <code>*</code>, <code>[ ]</code></li> <li>sequencing: <a href="/wiki/Comma_operator" title="Comma operator"><code>,</code></a></li> <li><a href="/wiki/Order_of_operations#Programming_languages" title="Order of operations">subexpression grouping</a>: <code>( )</code></li> <li><a href="/wiki/Type_conversion" title="Type conversion">type conversion</a>: <code>(<i>typename</i>)</code></li></ul> <p>C uses the operator <code>=</code> (used in mathematics to express equality) to indicate assignment, following the precedent of <a href="/wiki/Fortran" title="Fortran">Fortran</a> and <a href="/wiki/PL/I" title="PL/I">PL/I</a>, but unlike <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> and its derivatives. C uses the operator <code>==</code> to test for equality. The similarity between the operators for assignment and equality may result in the accidental use of one in place of the other, and in many cases the mistake does not produce an error message (although some compilers produce warnings). For example, the conditional expression <code>if (a == b + 1)</code> might mistakenly be written as <code>if (a = b + 1)</code>, which will be evaluated as <code>true</code> unless the value of <code>a</code> is <code>0</code> after the assignment.<sup id="cite_ref-AutoTX-8_34-0" class="reference"><a href="#cite_note-AutoTX-8-34"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup> </p><p>The C <a href="/wiki/Operator_precedence" class="mw-redirect" title="Operator precedence">operator precedence</a> is not always intuitive. For example, the operator <code>==</code> binds more tightly than (is executed prior to) the operators <code>&</code> (bitwise AND) and <code>|</code> (bitwise OR) in expressions such as <code>x & 1 == 0</code>, which must be written as <code>(x & 1) == 0</code> if that is the coder's intent.<sup id="cite_ref-AutoTX-9_35-0" class="reference"><a href="#cite_note-AutoTX-9-35"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup> </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(4)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id='"Hello,_world"_example'><span id=".22Hello.2C_world.22_example"></span><span class="anchor" id="HELLOWORLD"></span>"Hello, world" example</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=20" title='Edit section: "Hello, world" example' class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-4 collapsible-block" id="mf-section-4"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/%22Hello,_World!%22_program" title='"Hello, World!" program'>"Hello, World!" program</a></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Hello_World_Brian_Kernighan_1978.jpg" class="mw-file-description"><noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/21/Hello_World_Brian_Kernighan_1978.jpg/220px-Hello_World_Brian_Kernighan_1978.jpg" decoding="async" width="220" height="241" class="mw-file-element" data-file-width="3004" data-file-height="3293"></noscript><span class="lazy-image-placeholder" style="width: 220px;height: 241px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/2/21/Hello_World_Brian_Kernighan_1978.jpg/220px-Hello_World_Brian_Kernighan_1978.jpg" data-width="220" data-height="241" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/21/Hello_World_Brian_Kernighan_1978.jpg/330px-Hello_World_Brian_Kernighan_1978.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/21/Hello_World_Brian_Kernighan_1978.jpg/440px-Hello_World_Brian_Kernighan_1978.jpg 2x" data-class="mw-file-element"> </span></a><figcaption>"Hello, World!" program by <a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a> (1978)</figcaption></figure> <p>The "hello, world" example that appeared in the first edition of <i><a href="/wiki/The_C_Programming_Language" title="The C Programming Language">K&R</a></i> has become the model for an introductory program in most programming textbooks. The program prints "hello, world" to the <a href="/wiki/Standard_output" class="mw-redirect" title="Standard output">standard output</a>, which is usually a terminal or screen display. </p><p>The original version was:<sup id="cite_ref-FOOTNOTEKernighanRitchie19786_36-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie19786-36"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="n">main</span><span class="p">()</span> <span class="p">{</span> <span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"hello, world</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> <span class="p">}</span> </pre></div> <p>A standard-conforming "hello, world" program is:<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>a<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span> <span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"hello, world</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> <span class="p">}</span> </pre></div> <p>The first line of the program contains a <a href="/wiki/Preprocessing_directive" class="mw-redirect" title="Preprocessing directive">preprocessing directive</a>, indicated by <code>#include</code>. This causes the compiler to replace that line of code with the entire text of the <code><a href="/wiki/Stdio.h" class="mw-redirect" title="Stdio.h">stdio.h</a></code> header file, which contains declarations for standard input and output functions such as <code>printf</code> and <code>scanf</code>. The angle brackets surrounding <code>stdio.h</code> indicate that the header file can be located using a search strategy that prefers headers provided with the compiler to other headers having the same name (as opposed to double quotes which typically include local or project-specific header files). </p><p>The second line indicates that a function named <code>main</code> is being defined. The <code><a href="/wiki/Entry_point" title="Entry point">main</a></code> function serves a special purpose in C programs; the <a href="/wiki/Run-time_environment" class="mw-redirect" title="Run-time environment">run-time environment</a> calls the <code>main</code> function to begin program execution. The type specifier <code>int</code> indicates that the value returned to the invoker (in this case the run-time environment) as a result of evaluating the <code>main</code> function, is an integer. The keyword <code>void</code> as a parameter list indicates that the <code>main</code> function takes no arguments.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">[</span>b<span class="cite-bracket">]</span></a></sup> </p><p>The opening curly brace indicates the beginning of the code that defines the <code>main</code> function. </p><p>The next line of the program is a statement that <i>calls</i> (i.e. diverts execution to) a function named <code><a href="/wiki/Printf" title="Printf">printf</a></code>, which in this case is supplied from a system <a href="/wiki/Library_(computing)" title="Library (computing)">library</a>. In this call, the <code>printf</code> function is <i>passed</i> (i.e. provided with) a single argument, which is the <a href="/wiki/Memory_address" title="Memory address">address</a> of the first character in the <a href="/wiki/String_literal" title="String literal">string literal</a> <code>"hello, world\n"</code>. The string literal is an unnamed <a href="/wiki/Array_(data_type)" title="Array (data type)">array</a> set up automatically by the compiler, with elements of type <code>char</code> and a final <a href="/wiki/Null_character" title="Null character">NULL character</a> (ASCII value 0) marking the end of the array (to allow <code>printf</code> to determine the length of the string). The NULL character can also be written as the <a href="/wiki/Escape_sequences_in_C" title="Escape sequences in C">escape sequence</a> <code>\0</code>. The <code>\n</code> is a standard escape sequence that C translates to a <i><a href="/wiki/Newline" title="Newline">newline</a></i> character, which, on output, signifies the end of the current line. The return value of the <code>printf</code> function is of type <code>int</code>, but it is silently discarded since it is not used. (A more careful program might test the return value to check that the <code>printf</code> function succeeded.) The semicolon <code>;</code> terminates the statement. </p><p>The closing curly brace indicates the end of the code for the <code>main</code> function. According to the C99 specification and newer, the <code>main</code> function (unlike any other function) will implicitly return a value of <code>0</code> upon reaching the <code>}</code> that terminates the function.<sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">[</span>c<span class="cite-bracket">]</span></a></sup> The return value of <code>0</code> is interpreted by the run-time system as an exit code indicating successful execution of the function.<sup id="cite_ref-bk21st_40-0" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(5)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Data_types">Data types</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=21" title="Edit section: Data types" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-5 collapsible-block" id="mf-section-5"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/C_data_types" title="C data types">C data types</a></div> <style data-mw-deduplicate="TemplateStyles:r1251242444">.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}</style><table class="box-More_citations_needed_section plainlinks metadata ambox ambox-content ambox-Refimprove" role="presentation"><tbody><tr><td class="mbox-text"><div class="mbox-text-span">This section <b>needs additional citations for <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verification</a></b>.<span class="hide-when-compact"> Please help <a href="/wiki/Special:EditPage/C_(programming_language)" title="Special:EditPage/C (programming language)">improve this article</a> by <a href="/wiki/Help:Referencing_for_beginners" title="Help:Referencing for beginners">adding citations to reliable sources</a> in this section. Unsourced material may be challenged and removed.</span> <span class="date-container"><i>(<span class="date">October 2012</span>)</i></span><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:1999_ISO_C_Concepts.png" class="mw-file-description"><noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/30/1999_ISO_C_Concepts.png/220px-1999_ISO_C_Concepts.png" decoding="async" width="220" height="311" class="mw-file-element" data-file-width="794" data-file-height="1123"></noscript><span class="lazy-image-placeholder" style="width: 220px;height: 311px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/3/30/1999_ISO_C_Concepts.png/220px-1999_ISO_C_Concepts.png" data-width="220" data-height="311" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/30/1999_ISO_C_Concepts.png/330px-1999_ISO_C_Concepts.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/30/1999_ISO_C_Concepts.png/440px-1999_ISO_C_Concepts.png 2x" data-class="mw-file-element"> </span></a><figcaption></figcaption></figure> <p>The <a href="/wiki/Type_system" title="Type system">type system</a> in C is <a href="/wiki/Static_typing" class="mw-redirect" title="Static typing">static</a> and <a href="/wiki/Strong_and_weak_typing" title="Strong and weak typing">weakly typed</a>, which makes it similar to the type system of <a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> descendants such as <a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>.<sup id="cite_ref-Nmlwr_41-0" class="reference"><a href="#cite_note-Nmlwr-41"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup> There are built-in types for integers of various sizes, both signed and unsigned, <a href="/wiki/Floating-point_number" class="mw-redirect" title="Floating-point number">floating-point numbers</a>, and enumerated types (<code>enum</code>). Integer type <code>char</code> is often used for single-byte characters. C99 added a <a href="/wiki/Boolean_data_type" title="Boolean data type">Boolean data type</a>. There are also derived types including <a href="/wiki/Array_(data_type)" title="Array (data type)">arrays</a>, <a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>, <a href="/wiki/Record_(computer_science)" title="Record (computer science)">records</a> (<code><a href="/wiki/Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code>), and <a href="/wiki/Union_(computer_science)" class="mw-redirect" title="Union (computer science)">unions</a> (<code>union</code>). </p><p>C is often used in low-level systems programming where escapes from the type system may be necessary. The compiler attempts to ensure type correctness of most expressions, but the programmer can override the checks in various ways, either by using a <i><a href="/wiki/Type_conversion" title="Type conversion">type cast</a></i> to explicitly convert a value from one type to another, or by using pointers or unions to reinterpret the underlying bits of a data object in some other way. </p><p>Some find C's declaration syntax unintuitive, particularly for <a href="/wiki/Function_pointer" title="Function pointer">function pointers</a>. (Ritchie's idea was to declare identifiers in contexts resembling their use: "<a href="/wiki/Declaration_reflects_use" class="mw-redirect" title="Declaration reflects use">declaration reflects use</a>".)<sup id="cite_ref-FOOTNOTEKernighanRitchie1988122_42-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988122-42"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup> </p><p>C's <i>usual arithmetic conversions</i> allow for efficient code to be generated, but can sometimes produce unexpected results. For example, a comparison of signed and unsigned integers of equal width requires a conversion of the signed value to unsigned. This can generate unexpected results if the signed value is negative. </p> <div class="mw-heading mw-heading3"><h3 id="Pointers">Pointers</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=22" title="Edit section: Pointers" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>C supports the use of <a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>, a type of <a href="/wiki/Reference_(computer_science)" title="Reference (computer science)">reference</a> that records the address or location of an object or function in memory. Pointers can be <i>dereferenced</i> to access data stored at the address pointed to, or to invoke a pointed-to function. Pointers can be manipulated using assignment or <a href="/wiki/Pointer_arithmetic" class="mw-redirect" title="Pointer arithmetic">pointer arithmetic</a>. The run-time representation of a pointer value is typically a raw memory address (perhaps augmented by an offset-within-word field), but since a pointer's type includes the type of the thing pointed to, expressions including pointers can be type-checked at compile time. Pointer arithmetic is automatically scaled by the size of the pointed-to data type. </p><p>Pointers are used for many purposes in C. <a href="/wiki/Text_string" class="mw-redirect" title="Text string">Text strings</a> are commonly manipulated using pointers into arrays of characters. <a href="/wiki/Dynamic_memory_allocation" class="mw-redirect" title="Dynamic memory allocation">Dynamic memory allocation</a> is performed using pointers; the result of a <code>malloc</code> is usually <a href="/wiki/Type_conversion" title="Type conversion">cast</a> to the data type of the data to be stored. Many data types, such as <a href="/wiki/Tree_(data_structure)" class="mw-redirect" title="Tree (data structure)">trees</a>, are commonly implemented as dynamically allocated <code>struct</code> objects linked together using pointers. Pointers to other pointers are often used in multi-dimensional arrays and arrays of <code>struct</code> objects. Pointers to functions (<i><a href="/wiki/Function_pointer" title="Function pointer">function pointers</a></i>) are useful for passing functions as arguments to <a href="/wiki/Higher-order_function" title="Higher-order function">higher-order functions</a> (such as <a href="/wiki/Qsort" title="Qsort">qsort</a> or <a href="/wiki/Bsearch" class="mw-redirect" title="Bsearch">bsearch</a>), in <a href="/wiki/Dispatch_table" title="Dispatch table">dispatch tables</a>, or as <a href="/wiki/Callbacks" class="mw-redirect" title="Callbacks">callbacks</a> to <a href="/wiki/Event_handler" class="mw-redirect" title="Event handler">event handlers</a>.<sup id="cite_ref-bk21st_40-1" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p><p>A <i><a href="/wiki/Null_pointer" title="Null pointer">null pointer</a> value</i> explicitly points to no valid location. Dereferencing a null pointer value is undefined, often resulting in a <a href="/wiki/Segmentation_fault" title="Segmentation fault">segmentation fault</a>. Null pointer values are useful for indicating special cases such as no "next" pointer in the final node of a <a href="/wiki/Linked_list" title="Linked list">linked list</a>, or as an error indication from functions returning pointers. In appropriate contexts in source code, such as for assigning to a pointer variable, a <i>null pointer constant</i> can be written as <code>0</code>, with or without explicit casting to a pointer type, as the <code>NULL</code> macro defined by several standard headers or, since C23 with the constant <code>nullptr</code>. In conditional contexts, null pointer values evaluate to <code>false</code>, while all other pointer values evaluate to <code>true</code>. </p><p>Void pointers (<code>void *</code>) point to objects of unspecified type, and can therefore be used as "generic" data pointers. Since the size and type of the pointed-to object is not known, void pointers cannot be dereferenced, nor is pointer arithmetic on them allowed, although they can easily be (and in many contexts implicitly are) converted to and from any other object pointer type.<sup id="cite_ref-bk21st_40-2" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p><p>Careless use of pointers is potentially dangerous. Because they are typically unchecked, a pointer variable can be made to point to any arbitrary location, which can cause undesirable effects. Although properly used pointers point to safe places, they can be made to point to unsafe places by using invalid <a href="/wiki/Pointer_arithmetic" class="mw-redirect" title="Pointer arithmetic">pointer arithmetic</a>; the objects they point to may continue to be used after deallocation (<a href="/wiki/Dangling_pointer" title="Dangling pointer">dangling pointers</a>); they may be used without having been initialized (<a href="/wiki/Wild_pointer" class="mw-redirect" title="Wild pointer">wild pointers</a>); or they may be directly assigned an unsafe value using a cast, union, or through another corrupt pointer. In general, C is permissive in allowing manipulation of and conversion between pointer types, although compilers typically provide options for various levels of checking. Some other programming languages address these problems by using more restrictive <a href="/wiki/Reference_(computer_science)" title="Reference (computer science)">reference</a> types. </p> <div class="mw-heading mw-heading3"><h3 id="Arrays">Arrays</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=23" title="Edit section: Arrays" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">See also: <a href="/wiki/C_string_handling" title="C string handling">C string handling</a></div> <p><a href="/wiki/Array_(data_type)" title="Array (data type)">Array</a> types in C are traditionally of a fixed, static size specified at compile time. The more recent C99 standard also allows a form of variable-length arrays. However, it is also possible to allocate a block of memory (of arbitrary size) at run-time, using the standard library's <code>malloc</code> function, and treat it as an array. </p><p>Since arrays are always accessed (in effect) via pointers, array accesses are typically <i>not</i> checked against the underlying array size, although some compilers may provide <a href="/wiki/Bounds_checking" title="Bounds checking">bounds checking</a> as an option.<sup id="cite_ref-fedoraproject_43-0" class="reference"><a href="#cite_note-fedoraproject-43"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Programming_with_C_44-0" class="reference"><a href="#cite_note-Programming_with_C-44"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> Array bounds violations are therefore possible and can lead to various repercussions, including illegal memory accesses, corruption of data, <a href="/wiki/Buffer_overruns" class="mw-redirect" title="Buffer overruns">buffer overruns</a>, and run-time exceptions. </p><p>C does not have a special provision for declaring <a href="/wiki/Multi-dimensional_array" class="mw-redirect" title="Multi-dimensional array">multi-dimensional arrays</a>, but rather relies on <a href="/wiki/Recursion_(computer_science)" title="Recursion (computer science)">recursion</a> within the type system to declare arrays of arrays, which effectively accomplishes the same thing. The index values of the resulting "multi-dimensional array" can be thought of as increasing in <a href="/wiki/Row-major_order" class="mw-redirect" title="Row-major order">row-major order</a>. Multi-dimensional arrays are commonly used in numerical algorithms (mainly from applied <a href="/wiki/Linear_algebra" title="Linear algebra">linear algebra</a>) to store matrices. The structure of the C array is well suited to this particular task. However, in early versions of C the bounds of the array must be known fixed values or else explicitly passed to any subroutine that requires them, and dynamically sized arrays of arrays cannot be accessed using double indexing. (A workaround for this was to allocate the array with an additional "row vector" of pointers to the columns.) C99 introduced "variable-length arrays" which address this issue. </p><p>The following example using modern C (C99 or later) shows allocation of a two-dimensional array on the heap and the use of multi-dimensional array indexing for accesses (which can use bounds-checking on many C compilers): </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span><span class="w"> </span><span class="nf">func</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">M</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)[</span><span class="n">N</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">M</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">N</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">M</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> <span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="p">;</span> <span class="w"> </span><span class="n">print_array</span><span class="p">(</span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="n">M</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">);</span> <span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">p</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="p">}</span> </pre></div> <p>And here is a similar implementation using C99's <i>Auto <a href="/wiki/Variable_length_array" class="mw-redirect" title="Variable length array">VLA</a></i> feature:<sup id="cite_ref-45" class="reference"><a href="#cite_note-45"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="kt">int</span><span class="w"> </span><span class="nf">func</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">M</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="c1">// Caution: checks should be made to ensure N*M*sizeof(float) does NOT exceed limitations for auto VLAs and is within available size of stack.</span> <span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">p</span><span class="p">[</span><span class="n">N</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">M</span><span class="p">];</span><span class="w"> </span><span class="c1">// auto VLA is held on the stack, and sized when the function is invoked</span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">N</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">M</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> <span class="w"> </span><span class="n">p</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="p">;</span> <span class="w"> </span><span class="n">print_array</span><span class="p">(</span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="n">M</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">);</span> <span class="w"> </span><span class="c1">// no need to free(p) since it will disappear when the function exits, along with the rest of the stack frame</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Array–pointer_interchangeability"><span id="Array.E2.80.93pointer_interchangeability"></span>Array–pointer interchangeability</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=24" title="Edit section: Array–pointer interchangeability" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>The subscript notation <code>x[i]</code> (where <code>x</code> designates a pointer) is <a href="/wiki/Syntactic_sugar" title="Syntactic sugar">syntactic sugar</a> for <code>*(x+i)</code>.<sup id="cite_ref-Raymond1996_46-0" class="reference"><a href="#cite_note-Raymond1996-46"><span class="cite-bracket">[</span>42<span class="cite-bracket">]</span></a></sup> Taking advantage of the compiler's knowledge of the pointer type, the address that <code>x + i</code> points to is not the base address (pointed to by <code>x</code>) incremented by <code>i</code> bytes, but rather is defined to be the base address incremented by <code>i</code> multiplied by the size of an element that <code>x</code> points to. Thus, <code>x[i]</code> designates the <code>i+1</code>th element of the array. </p><p>Furthermore, in most expression contexts (a notable exception is as operand of <code><a href="/wiki/Sizeof" title="Sizeof">sizeof</a></code>), an expression of array type is automatically converted to a pointer to the array's first element. This implies that an array is never copied as a whole when named as an argument to a function, but rather only the address of its first element is passed. Therefore, although function calls in C use <a href="/wiki/Pass-by-value" class="mw-redirect" title="Pass-by-value">pass-by-value</a> semantics, arrays are in effect passed by <a href="/wiki/Reference_(computer_science)" title="Reference (computer science)">reference</a>. </p><p>The total size of an array <code>x</code> can be determined by applying <code>sizeof</code> to an expression of array type. The size of an element can be determined by applying the operator <code>sizeof</code> to any dereferenced element of an array <code>A</code>, as in <code>n = sizeof A[0]</code>. Thus, the number of elements in a declared array <code>A</code> can be determined as <code>sizeof A / sizeof A[0]</code>. Note, that if only a pointer to the first element is available as it is often the case in C code because of the automatic conversion described above, the information about the full type of the array and its length are lost. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(6)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Memory_management">Memory management</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=25" title="Edit section: Memory management" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-6 collapsible-block" id="mf-section-6"> <p>One of the most important functions of a programming language is to provide facilities for managing <a href="/wiki/Computer_memory" title="Computer memory">memory</a> and the objects that are stored in memory. C provides three principal ways to allocate memory for objects:<sup id="cite_ref-bk21st_40-3" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p> <ul><li><a href="/wiki/Static_memory_allocation" class="mw-redirect" title="Static memory allocation">Static memory allocation</a>: space for the object is provided in the binary at compile-time; these objects have an <a href="/wiki/Variable_(programming)#Scope_and_extent" class="mw-redirect" title="Variable (programming)">extent</a> (or lifetime) as long as the binary which contains them is loaded into memory.</li> <li><a href="/wiki/Automatic_memory_allocation" class="mw-redirect" title="Automatic memory allocation">Automatic memory allocation</a>: temporary objects can be stored on the <a href="/wiki/Call_stack" title="Call stack">stack</a>, and this space is automatically freed and reusable after the block in which they are declared is exited.</li> <li><a href="/wiki/C_dynamic_memory_allocation" title="C dynamic memory allocation">Dynamic memory allocation</a>: blocks of memory of arbitrary size can be requested at run-time using library functions such as <code>malloc</code> from a region of memory called the <a href="/wiki/Memory_management" title="Memory management">heap</a>; these blocks persist until subsequently freed for reuse by calling the library function <code>realloc</code> or <code>free</code>.</li></ul> <p>These three approaches are appropriate in different situations and have various trade-offs. For example, static memory allocation has little allocation overhead, automatic allocation may involve slightly more overhead, and dynamic memory allocation can potentially have a great deal of overhead for both allocation and deallocation. The persistent nature of static objects is useful for maintaining state information across function calls, automatic allocation is easy to use but stack space is typically much more limited and transient than either static memory or heap space, and dynamic memory allocation allows convenient allocation of objects whose size is known only at run-time. Most C programs make extensive use of all three. </p><p>Where possible, automatic or static allocation is usually simplest because the storage is managed by the compiler, freeing the programmer of the potentially error-prone chore of manually allocating and releasing storage. However, many data structures can change in size at runtime, and since static allocations (and automatic allocations before C99) must have a fixed size at compile-time, there are many situations in which dynamic allocation is necessary.<sup id="cite_ref-bk21st_40-4" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> Prior to the C99 standard, variable-sized arrays were a common example of this. (See the article on <a href="/wiki/C_dynamic_memory_allocation" title="C dynamic memory allocation">C dynamic memory allocation</a> for an example of dynamically allocated arrays.) Unlike automatic allocation, which can fail at run time with uncontrolled consequences, the dynamic allocation functions return an indication (in the form of a null pointer value) when the required storage cannot be allocated. (Static allocation that is too large is usually detected by the <a href="/wiki/Linker_(computing)" title="Linker (computing)">linker</a> or <a href="/wiki/Loader_(computing)" title="Loader (computing)">loader</a>, before the program can even begin execution.) </p><p>Unless otherwise specified, static objects contain zero or null pointer values upon program startup. Automatically and dynamically allocated objects are initialized only if an initial value is explicitly specified; otherwise they initially have indeterminate values (typically, whatever <a href="/wiki/Bit_pattern" class="mw-redirect" title="Bit pattern">bit pattern</a> happens to be present in the <a href="/wiki/Computer_storage" class="mw-redirect" title="Computer storage">storage</a>, which might not even represent a valid value for that type). If the program attempts to access an uninitialized value, the results are undefined. Many modern compilers try to detect and warn about this problem, but both <a href="/wiki/Type_I_and_type_II_errors" title="Type I and type II errors">false positives and false negatives</a> can occur. </p><p>Heap memory allocation has to be synchronized with its actual usage in any program to be reused as much as possible. For example, if the only pointer to a heap memory allocation goes out of scope or has its value overwritten before it is deallocated explicitly, then that memory cannot be recovered for later reuse and is essentially lost to the program, a phenomenon known as a <i><a href="/wiki/Memory_leak" title="Memory leak">memory leak</a>.</i> Conversely, it is possible for memory to be freed, but is referenced subsequently, leading to unpredictable results. Typically, the failure symptoms appear in a portion of the program unrelated to the code that causes the error, making it difficult to diagnose the failure. Such issues are ameliorated in languages with <a href="/wiki/Automatic_garbage_collection" class="mw-redirect" title="Automatic garbage collection">automatic garbage collection</a>. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(7)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Libraries">Libraries</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=26" title="Edit section: Libraries" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-7 collapsible-block" id="mf-section-7"> <p>The C programming language uses <a href="/wiki/Library_(computing)" title="Library (computing)">libraries</a> as its primary method of extension. In C, a library is a set of functions contained within a single "archive" file. Each library typically has a <a href="/wiki/Header_file" class="mw-redirect" title="Header file">header file</a>, which contains the prototypes of the functions contained within the library that may be used by a program, and declarations of special data types and macro symbols used with these functions. For a program to use a library, it must include the library's header file, and the library must be linked with the program, which in many cases requires <a href="/wiki/Compiler_flag" class="mw-redirect" title="Compiler flag">compiler flags</a> (e.g., <code>-lm</code>, shorthand for "link the math library").<sup id="cite_ref-bk21st_40-5" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p><p>The most common C library is the <a href="/wiki/C_standard_library" title="C standard library">C standard library</a>, which is specified by the <a href="/wiki/ISO_standard" class="mw-redirect" title="ISO standard">ISO</a> and <a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a> standards and comes with every C implementation (implementations which target limited environments such as <a href="/wiki/Embedded_system" title="Embedded system">embedded systems</a> may provide only a subset of the standard library). This library supports stream input and output, memory allocation, mathematics, character strings, and time values. Several separate standard headers (for example, <code>stdio.h</code>) specify the interfaces for these and other standard library facilities. </p><p>Another common set of C library functions are those used by applications specifically targeted for <a href="/wiki/Unix" title="Unix">Unix</a> and <a href="/wiki/Unix-like" title="Unix-like">Unix-like</a> systems, especially functions which provide an interface to the <a href="/wiki/Kernel_(operating_system)" title="Kernel (operating system)">kernel</a>. These functions are detailed in various standards such as <a href="/wiki/POSIX" title="POSIX">POSIX</a> and the <a href="/wiki/Single_UNIX_Specification" title="Single UNIX Specification">Single UNIX Specification</a>. </p><p>Since many programs have been written in C, there are a wide variety of other libraries available. Libraries are often written in C because C compilers generate efficient <a href="/wiki/Object_code" title="Object code">object code</a>; programmers then create interfaces to the library so that the routines can be used from higher-level languages like <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="/wiki/Perl" title="Perl">Perl</a>, and <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>.<sup id="cite_ref-bk21st_40-6" class="reference"><a href="#cite_note-bk21st-40"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="File_handling_and_streams">File handling and streams</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=27" title="Edit section: File handling and streams" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>File input and output (I/O) is not part of the C language itself but instead is handled by libraries (such as the C standard library) and their associated header files (e.g. <code>stdio.h</code>). File handling is generally implemented through high-level I/O which works through <a href="/wiki/Stream_(computing)" title="Stream (computing)">streams</a>. A stream is from this perspective a data flow that is independent of devices, while a file is a concrete device. The high-level I/O is done through the association of a stream to a file. In the C standard library, a <a href="/wiki/Data_buffer" title="Data buffer">buffer</a> (a memory area or queue) is temporarily used to store data before it is sent to the final destination. This reduces the time spent waiting for slower devices, for example a <a href="/wiki/Hard_drive" class="mw-redirect" title="Hard drive">hard drive</a> or <a href="/wiki/Solid-state_drive" title="Solid-state drive">solid-state drive</a>. Low-level I/O functions are not part of the standard C library<sup class="noprint Inline-Template" style="margin-left:0.1em; white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The text near this tag may need clarification or removal of jargon. (October 2021)">clarification needed</span></a></i>]</sup> but are generally part of "bare metal" programming (programming that is independent of any <a href="/wiki/Operating_system" title="Operating system">operating system</a> such as most <a href="/wiki/Embedded_programming" class="mw-redirect" title="Embedded programming">embedded programming</a>). With few exceptions, implementations include low-level I/O. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(8)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Language_tools">Language tools</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=28" title="Edit section: Language tools" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-8 collapsible-block" id="mf-section-8"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1251242444"><table class="box-More_citations_needed_section plainlinks metadata ambox ambox-content ambox-Refimprove" role="presentation"><tbody><tr><td class="mbox-text"><div class="mbox-text-span">This section <b>needs additional citations for <a href="/wiki/Wikipedia:Verifiability" title="Wikipedia:Verifiability">verification</a></b>.<span class="hide-when-compact"> Please help <a href="/wiki/Special:EditPage/C_(programming_language)" title="Special:EditPage/C (programming language)">improve this article</a> by <a href="/wiki/Help:Referencing_for_beginners" title="Help:Referencing for beginners">adding citations to reliable sources</a> in this section. Unsourced material may be challenged and removed.</span> <span class="date-container"><i>(<span class="date">July 2014</span>)</i></span><span class="hide-when-compact"><i> (<small><a href="/wiki/Help:Maintenance_template_removal" title="Help:Maintenance template removal">Learn how and when to remove this message</a></small>)</i></span></div></td></tr></tbody></table> <p>A number of tools have been developed to help C programmers find and fix statements with undefined behavior or possibly erroneous expressions, with greater rigor than that provided by the compiler. The tool <a href="/wiki/Lint_(software)" title="Lint (software)">lint</a> was the first such, leading to many others. </p><p>Automated source code checking and auditing are beneficial in any language, and for C many such tools exist, such as <a href="/wiki/Lint_(software)" title="Lint (software)">Lint</a>. A common practice is to use Lint to detect questionable code when a program is first written. Once a program passes Lint, it is then compiled using the C compiler. Also, many compilers can optionally warn about syntactically valid constructs that are likely to actually be errors. <a href="/wiki/MISRA_C" title="MISRA C">MISRA C</a> is a proprietary set of guidelines to avoid such questionable code, developed for embedded systems.<sup id="cite_ref-MI2L0_47-0" class="reference"><a href="#cite_note-MI2L0-47"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup> </p><p>There are also compilers, libraries, and operating system level mechanisms for performing actions that are not a standard part of C, such as <a href="/wiki/Bounds_checking" title="Bounds checking">bounds checking</a> for arrays, detection of <a href="/wiki/Buffer_overflow" title="Buffer overflow">buffer overflow</a>, <a href="/wiki/Serialization" title="Serialization">serialization</a>, <a href="/wiki/Dynamic_memory" class="mw-redirect" title="Dynamic memory">dynamic memory</a> tracking, and <a href="/wiki/Automatic_garbage_collection" class="mw-redirect" title="Automatic garbage collection">automatic garbage collection</a>. </p><p>Tools such as <a href="/wiki/IBM_Rational_Purify" class="mw-redirect" title="IBM Rational Purify">Purify</a> or <a href="/wiki/Valgrind" title="Valgrind">Valgrind</a> and linking with libraries containing special versions of the <a href="/wiki/Malloc" class="mw-redirect" title="Malloc">memory allocation functions</a> can help uncover runtime errors in memory usage.<sup id="cite_ref-48" class="reference"><a href="#cite_note-48"><span class="cite-bracket">[</span>44<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-49" class="reference"><a href="#cite_note-49"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup> </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(9)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Uses">Uses</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=29" title="Edit section: Uses" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-9 collapsible-block" id="mf-section-9"> <div class="mw-heading mw-heading3"><h3 id="Rationale_for_use_in_systems_programming">Rationale for use in systems programming</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=30" title="Edit section: Rationale for use in systems programming" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:The_C_Programming_Language.png" class="mw-file-description"><noscript><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/10/The_C_Programming_Language.png/220px-The_C_Programming_Language.png" decoding="async" width="220" height="156" class="mw-file-element" data-file-width="1123" data-file-height="794"></noscript><span class="lazy-image-placeholder" style="width: 220px;height: 156px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/1/10/The_C_Programming_Language.png/220px-The_C_Programming_Language.png" data-width="220" data-height="156" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/10/The_C_Programming_Language.png/330px-The_C_Programming_Language.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/10/The_C_Programming_Language.png/440px-The_C_Programming_Language.png 2x" data-class="mw-file-element"> </span></a><figcaption>Some software written in C</figcaption></figure> <p>C is widely used for <a href="/wiki/Systems_programming" title="Systems programming">systems programming</a> in implementing <a href="/wiki/Operating_system" title="Operating system">operating systems</a> and <a href="/wiki/Embedded_system" title="Embedded system">embedded system</a> applications.<sup id="cite_ref-Zh3CW_50-0" class="reference"><a href="#cite_note-Zh3CW-50"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> This is for several reasons: </p> <ul><li>The C language permits platform hardware and memory to be accessed with pointers and <a href="/wiki/Type_punning" title="Type punning">type punning</a>, so system-specific features (e.g. <a href="/wiki/Control/Status_Register" title="Control/Status Register">Control/Status Registers</a>, <a href="/wiki/Memory-mapped_I/O" class="mw-redirect" title="Memory-mapped I/O">I/O registers</a>) can be configured and used with code written in C – it allows fullest control of the platform it is running on.</li> <li>The code generated after compilation does not demand many <a href="/wiki/Runtime_system" title="Runtime system">system features</a>, and can be invoked from some boot code in a straightforward manner – it is simple to execute.</li> <li>The C language statements and expressions typically map well on to sequences of instructions for the target processor, and consequently there is a low <a href="/wiki/Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">run-time</a> demand on system resources – it is fast to execute.</li> <li>With its rich set of operators, the C language can use many of the features of target CPUs. Where a particular CPU has more esoteric instructions, a language variant can be constructed with perhaps <a href="/wiki/Intrinsic_function" title="Intrinsic function">intrinsic functions</a> to exploit those instructions – it can use practically all the target CPU's features.</li> <li>The language makes it easy to overlay structures onto blocks of binary data, allowing the data to be comprehended, navigated and modified – it can write data structures, even file systems.</li> <li>The language supports a rich set of operators, including bit manipulation, for integer arithmetic and logic, and perhaps different sizes of floating point numbers – it can process appropriately-structured data effectively.</li> <li>C is a fairly small language, with only a handful of statements, and without too many features that generate extensive target code – it is comprehensible.</li> <li>C has direct control over memory allocation and deallocation, which gives reasonable efficiency and predictable timing to memory-handling operations, without any concerns for sporadic <i><a href="/wiki/Stop-the-world" class="mw-redirect" title="Stop-the-world">stop-the-world</a></i> garbage collection events – it has predictable performance.</li> <li>C permits the use and implementation of different <a href="/wiki/C_dynamic_memory_allocation" title="C dynamic memory allocation">memory allocation</a> schemes, including a typical <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" style="" dir="ltr"><span class="n">malloc</span></code> and <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" style="" dir="ltr"><span class="n">free</span></code>; a more sophisticated mechanism with <a href="/wiki/Region-based_memory_management" title="Region-based memory management"><i>arenas</i></a>; or a version for an <a href="/wiki/OS_kernel" class="mw-redirect" title="OS kernel">OS kernel</a> that may suit <a href="/wiki/Direct_memory_access" title="Direct memory access">DMA</a>, use within <a href="/wiki/Interrupt_handler" title="Interrupt handler">interrupt handlers</a>, or integrated with the <a href="/wiki/Virtual_memory" title="Virtual memory">virtual memory</a> system.</li> <li>Depending on the linker and environment, C code can also call libraries written in <a href="/wiki/Assembly_language" title="Assembly language">assembly language</a>, and may be called from assembly language – it interoperates well with other lower-level code.</li> <li>C and its <a href="/wiki/Calling_convention" title="Calling convention">calling conventions</a> and linker structures are commonly used in conjunction with other high-level languages, with calls both to C and from C supported – it interoperates well with other high-level code.</li> <li>C has a very mature and broad ecosystem, including libraries, frameworks, open source compilers, debuggers and utilities, and is the de facto standard. It is likely the drivers already exist in C, or that there is a similar CPU architecture as a back-end of a C compiler, so there is reduced incentive to choose another language.</li></ul> <div class="mw-heading mw-heading3"><h3 id="Used_for_computationally-intensive_libraries">Used for computationally-intensive libraries</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=31" title="Edit section: Used for computationally-intensive libraries" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>C enables programmers to create efficient implementations of algorithms and data structures, because the layer of abstraction from hardware is thin, and its overhead is low, an important criterion for computationally intensive programs. For example, the <a href="/wiki/GNU_Multiple_Precision_Arithmetic_Library" title="GNU Multiple Precision Arithmetic Library">GNU Multiple Precision Arithmetic Library</a>, the <a href="/wiki/GNU_Scientific_Library" title="GNU Scientific Library">GNU Scientific Library</a>, <a href="/wiki/Mathematica" class="mw-redirect" title="Mathematica">Mathematica</a>, and <a href="/wiki/MATLAB" title="MATLAB">MATLAB</a> are completely or partially written in C. Many languages support calling library functions in C, for example, the <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>-based framework <a href="/wiki/NumPy" title="NumPy">NumPy</a> uses C for the high-performance and hardware-interacting aspects. </p> <div class="mw-heading mw-heading3"><h3 id="C_as_an_intermediate_language">C as an intermediate language</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=32" title="Edit section: C as an intermediate language" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>C is sometimes used as an <a href="/wiki/Intermediate_language" class="mw-redirect" title="Intermediate language">intermediate language</a> by implementations of other languages. This approach may be used for portability or convenience; by using C as an intermediate language, additional machine-specific code generators are not necessary. C has some features, such as line-number preprocessor directives and optional superfluous commas at the end of initializer lists, that support compilation of generated code. However, some of C's shortcomings have prompted the development of other <a href="/wiki/C-based_languages" class="mw-redirect" title="C-based languages">C-based languages</a> specifically designed for use as intermediate languages, such as <a href="/wiki/C--" title="C--">C--</a>. Also, contemporary major compilers <a href="/wiki/GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a> and <a href="/wiki/LLVM" title="LLVM">LLVM</a> both feature an <a href="/wiki/Intermediate_representation" title="Intermediate representation">intermediate representation</a> that is not C, and those compilers support front ends for many languages including C. </p> <div class="mw-heading mw-heading3"><h3 id="Other_languages_written_in_C">Other languages written in C</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=33" title="Edit section: Other languages written in C" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>A consequence of C's wide availability and efficiency is that <a href="/wiki/Compiler" title="Compiler">compilers</a>, libraries and <a href="/wiki/Interpreter_(computing)" title="Interpreter (computing)">interpreters</a> of other programming languages are often implemented in C.<sup id="cite_ref-51" class="reference"><a href="#cite_note-51"><span class="cite-bracket">[</span>47<span class="cite-bracket">]</span></a></sup> For example, the <a href="/wiki/Reference_implementation" title="Reference implementation">reference implementations</a> of <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>,<sup id="cite_ref-52" class="reference"><a href="#cite_note-52"><span class="cite-bracket">[</span>48<span class="cite-bracket">]</span></a></sup> <a href="/wiki/Perl" title="Perl">Perl</a>,<sup id="cite_ref-53" class="reference"><a href="#cite_note-53"><span class="cite-bracket">[</span>49<span class="cite-bracket">]</span></a></sup> <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>,<sup id="cite_ref-54" class="reference"><a href="#cite_note-54"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup> and <a href="/wiki/PHP" title="PHP">PHP</a><sup id="cite_ref-55" class="reference"><a href="#cite_note-55"><span class="cite-bracket">[</span>51<span class="cite-bracket">]</span></a></sup> are written in C. </p> <div class="mw-heading mw-heading3"><h3 id="Once_used_for_web_development">Once used for web development</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=34" title="Edit section: Once used for web development" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>Historically, C was sometimes used for <a href="/wiki/Web_development" title="Web development">web development</a> using the <a href="/wiki/Common_Gateway_Interface" title="Common Gateway Interface">Common Gateway Interface</a> (CGI) as a "gateway" for information between the web application, the server, and the browser.<sup id="cite_ref-Dobbs_1995_56-0" class="reference"><a href="#cite_note-Dobbs_1995-56"><span class="cite-bracket">[</span>52<span class="cite-bracket">]</span></a></sup> C may have been chosen over <a href="/wiki/Interpreted_language" class="mw-redirect" title="Interpreted language">interpreted languages</a> because of its speed, stability, and near-universal availability.<sup id="cite_ref-linuxjournal_2005_57-0" class="reference"><a href="#cite_note-linuxjournal_2005-57"><span class="cite-bracket">[</span>53<span class="cite-bracket">]</span></a></sup> It is no longer common practice for web development to be done in C,<sup id="cite_ref-58" class="reference"><a href="#cite_note-58"><span class="cite-bracket">[</span>54<span class="cite-bracket">]</span></a></sup> and many other <a href="/wiki/Web_development_tools" title="Web development tools">web development tools</a> exist. </p> <div class="mw-heading mw-heading3"><h3 id="Web_servers">Web servers</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=35" title="Edit section: Web servers" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>The two most popular <a href="/wiki/Web_server" title="Web server">web servers</a>, <a href="/wiki/Apache_HTTP_Server" title="Apache HTTP Server">Apache HTTP Server</a> and <a href="/wiki/Nginx" title="Nginx">Nginx</a>, are both written in C. These web servers interact with the operating system, listen on TCP ports for HTTP requests, and then serve up static web content, or cause the execution of other languages handling to 'render' content such as <a href="/wiki/PHP" title="PHP">PHP</a>, which is itself primarily written in C. C's close-to-the-metal approach allows for the construction of these high-performance software systems. </p> <div class="mw-heading mw-heading3"><h3 id="End-user_applications">End-user applications</h3><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=36" title="Edit section: End-user applications" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div> <p>C has also been widely used to implement <a href="/wiki/End-user_(computer_science)" class="mw-redirect" title="End-user (computer science)">end-user</a> applications.<sup id="cite_ref-59" class="reference"><a href="#cite_note-59"><span class="cite-bracket">[</span>55<span class="cite-bracket">]</span></a></sup> However, such applications can also be written in newer, higher-level languages. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(10)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Limitations">Limitations</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=37" title="Edit section: Limitations" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-10 collapsible-block" id="mf-section-10"> <style data-mw-deduplicate="TemplateStyles:r1023981488">@media all and (max-width:720px){.mw-parser-output .rquote{width:auto!important;float:none!important}}</style><style data-mw-deduplicate="TemplateStyles:r1244412712">.mw-parser-output .templatequote{overflow:hidden;margin:1em 0;padding:0 32px}.mw-parser-output .templatequotecite{line-height:1.5em;text-align:left;margin-top:0}@media(min-width:500px){.mw-parser-output .templatequotecite{padding-left:1.6em}}</style><blockquote class="templatequote rquote" style="float: {{{align}}}; width: 33%;"><p>the power of assembly language and the convenience of ... assembly language</p><div class="templatequotecite">— <cite>Dennis Ritchie<sup id="cite_ref-60" class="reference"><a href="#cite_note-60"><span class="cite-bracket">[</span>56<span class="cite-bracket">]</span></a></sup></cite></div></blockquote> <p>While C has been popular, influential and hugely successful, it has drawbacks, including: </p> <ul><li>The standard dynamic memory handling with <code>malloc</code> and <code>free</code> is error prone. Bugs include: Memory leaks when memory is allocated but not freed; and access to previously freed memory.</li> <li>The use of pointers and the direct manipulation of memory means corruption of memory is possible, perhaps due to programmer error, or insufficient checking of bad data.</li> <li>There is some <a href="/wiki/Type_checking" class="mw-redirect" title="Type checking">type checking</a>, but it does not apply to areas like <a href="/wiki/Variadic_function" title="Variadic function">variadic functions</a>, and the type checking can be trivially or inadvertently circumvented. It is <a href="/wiki/Strong_and_weak_typing" title="Strong and weak typing">weakly typed</a>.</li> <li>Since the code generated by the compiler contains few checks itself, there is a burden on the programmer to consider all possible outcomes, to protect against buffer overruns, array bounds checking, <a href="/wiki/Stack_overflow" title="Stack overflow">stack overflows</a>, memory exhaustion, and consider <a href="/wiki/Race_condition#In_software" title="Race condition">race conditions</a>, thread isolation, etc.</li> <li>The use of pointers and the run-time manipulation of these means there may be two ways to access the same data (aliasing), which is not determinable at compile time. This means that some optimisations that may be available to other languages are not possible in C. FORTRAN is considered faster.</li> <li>Some of the standard library functions, e.g. <code>scanf</code> or <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">strncat</code>, can lead to <a href="/wiki/C_standard_library#Buffer_overflow_vulnerabilities" title="C standard library">buffer overruns</a>.</li> <li>There is limited standardisation in support for low-level variants in generated code, for example: different function <a href="/wiki/Calling_convention" title="Calling convention">calling conventions</a> and <a href="/wiki/Application_binary_interface" title="Application binary interface">ABI</a>; different <a href="/wiki/Data_structure_alignment" title="Data structure alignment">structure packing</a> conventions; different byte ordering within larger integers (including endianness). In many language implementations, some of these options may be handled with the preprocessor directive <code>#pragma</code>,<sup id="cite_ref-61" class="reference"><a href="#cite_note-61"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-62" class="reference"><a href="#cite_note-62"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> and some with additional keywords e.g. use <code>__cdecl</code> calling convention. But the directive and options are not consistently supported.<sup id="cite_ref-63" class="reference"><a href="#cite_note-63"><span class="cite-bracket">[</span>59<span class="cite-bracket">]</span></a></sup></li> <li><a href="/wiki/C_string_handling" title="C string handling">String handling</a> using the standard library is code-intensive, with explicit memory management required.</li> <li>The language does not directly support object orientation, <a href="/wiki/Type_introspection" title="Type introspection">introspection</a>, run-time expression evaluation, generics, etc.</li> <li>There are few guards against inappropriate use of language features, which may lead to <a href="/wiki/Software_maintenance" title="Software maintenance">unmaintainable</a> code. In particular, the <a href="/wiki/C_preprocessor" title="C preprocessor">C preprocessor</a> can hide troubling effects such as double evaluation and worse.<sup id="cite_ref-64" class="reference"><a href="#cite_note-64"><span class="cite-bracket">[</span>60<span class="cite-bracket">]</span></a></sup> This facility for tricky code has been celebrated with competitions such as the <i><a href="/wiki/International_Obfuscated_C_Code_Contest" title="International Obfuscated C Code Contest">International Obfuscated C Code Contest</a></i> and the <i><a href="/wiki/Underhanded_C_Contest" title="Underhanded C Contest">Underhanded C Contest</a></i>.</li> <li>C lacks standard support for <a href="/wiki/Exception_handling" title="Exception handling">exception handling</a> and only offers <a href="/wiki/Return_code" class="mw-redirect" title="Return code">return codes</a> for error checking. The <a href="/wiki/Setjmp.h" title="Setjmp.h"><code>setjmp</code> and <code>longjmp</code></a> standard library functions have been used<sup id="cite_ref-65" class="reference"><a href="#cite_note-65"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup> to implement a try-catch mechanism via macros.</li></ul> <p>For some purposes, restricted styles of C have been adopted, e.g. <a href="/wiki/MISRA_C" title="MISRA C">MISRA C</a> or <a href="/wiki/CERT_C" class="mw-redirect" title="CERT C">CERT C</a>, in an attempt to reduce the opportunity for bugs. Databases such as <a href="/wiki/Common_Weakness_Enumeration" title="Common Weakness Enumeration">CWE</a> attempt to count the ways C etc. has vulnerabilities, along with recommendations for mitigation. </p><p>There are <a href="#Language_tools">tools</a> that can mitigate against some of the drawbacks. Contemporary C compilers include checks which may generate warnings to help identify many potential bugs. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(11)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Related_languages">Related languages</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=38" title="Edit section: Related languages" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-11 collapsible-block" id="mf-section-11"> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Tiobe_index_2020_may.png" class="mw-file-description"><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/64/Tiobe_index_2020_may.png/220px-Tiobe_index_2020_may.png" decoding="async" width="220" height="90" class="mw-file-element" data-file-width="915" data-file-height="376"></noscript><span class="lazy-image-placeholder" style="width: 220px;height: 90px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/6/64/Tiobe_index_2020_may.png/220px-Tiobe_index_2020_may.png" data-alt="" data-width="220" data-height="90" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/64/Tiobe_index_2020_may.png/330px-Tiobe_index_2020_may.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/64/Tiobe_index_2020_may.png/440px-Tiobe_index_2020_may.png 2x" data-class="mw-file-element"> </span></a><figcaption>The <a href="/wiki/TIOBE_index" title="TIOBE index">TIOBE index</a> graph, showing a comparison of the popularity of various programming languages<sup id="cite_ref-MmjNC_66-0" class="reference"><a href="#cite_note-MmjNC-66"><span class="cite-bracket">[</span>62<span class="cite-bracket">]</span></a></sup></figcaption></figure> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/List_of_C-family_programming_languages" title="List of C-family programming languages">List of C-family programming languages</a></div> <p>C has both directly and indirectly influenced many later languages such as <a href="/wiki/C%2B%2B" title="C++">C++</a> and <a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a>.<sup id="cite_ref-kafmy_67-0" class="reference"><a href="#cite_note-kafmy-67"><span class="cite-bracket">[</span>63<span class="cite-bracket">]</span></a></sup> The most pervasive influence has been syntactical; all of the languages mentioned combine the statement and (more or less recognizably) expression <a href="/wiki/C_syntax" title="C syntax">syntax of C</a> with type systems, data models or large-scale program structures that differ from those of C, sometimes radically. </p><p>Several C or near-C interpreters exist, including <a href="/wiki/Ch_(computer_programming)" title="Ch (computer programming)">Ch</a> and <a href="/wiki/CINT" title="CINT">CINT</a>, which can also be used for scripting. </p><p>When <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object-oriented programming</a> languages became popular, <a href="/wiki/C%2B%2B" title="C++">C++</a> and <a href="/wiki/Objective-C" title="Objective-C">Objective-C</a> were two different extensions of C that provided object-oriented capabilities. Both languages were originally implemented as <a href="/wiki/Source-to-source_compiler" title="Source-to-source compiler">source-to-source compilers</a>; source code was translated into C, and then compiled with a C compiler.<sup id="cite_ref-dSI6f_68-0" class="reference"><a href="#cite_note-dSI6f-68"><span class="cite-bracket">[</span>64<span class="cite-bracket">]</span></a></sup> </p><p>The <a href="/wiki/C%2B%2B" title="C++">C++</a> programming language (originally named "C with <a href="/wiki/Class_(programming)" class="mw-redirect" title="Class (programming)">Classes</a>") was devised by <a href="/wiki/Bjarne_Stroustrup" title="Bjarne Stroustrup">Bjarne Stroustrup</a> as an approach to providing <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object-oriented</a> functionality with a C-like syntax.<sup id="cite_ref-stroustrup_1993_69-0" class="reference"><a href="#cite_note-stroustrup_1993-69"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup> C++ adds greater typing strength, scoping, and other tools useful in object-oriented programming, and permits <a href="/wiki/Generic_programming" title="Generic programming">generic programming</a> via templates. Nearly a superset of C, C++ now<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_items" title="Wikipedia:Manual of Style/Dates and numbers"><span title="The time period mentioned near this tag is ambiguous. (August 2022)">when?</span></a></i>]</sup> supports most of C, with <a href="/wiki/Compatibility_of_C_and_C%2B%2B" title="Compatibility of C and C++">a few exceptions</a>. </p><p><a href="/wiki/Objective-C" title="Objective-C">Objective-C</a> was originally a very "thin" layer on top of C, and remains a strict <a href="/wiki/Superset" class="mw-redirect" title="Superset">superset</a> of C that permits object-oriented programming using a hybrid dynamic/static typing paradigm. Objective-C derives its syntax from both C and <a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a>: syntax that involves preprocessing, expressions, function declarations, and function calls is inherited from C, while the syntax for object-oriented features was originally taken from Smalltalk. </p><p>In addition to <a href="/wiki/C%2B%2B" title="C++">C++</a> and <a href="/wiki/Objective-C" title="Objective-C">Objective-C</a>, <a href="/wiki/Ch_(computer_programming)" title="Ch (computer programming)">Ch</a>, <a href="/wiki/Cilk" title="Cilk">Cilk</a>, and <a href="/wiki/Unified_Parallel_C" title="Unified Parallel C">Unified Parallel C</a> are nearly supersets of C. </p> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(12)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="See_also">See also</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=39" title="Edit section: See also" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-12 collapsible-block" id="mf-section-12"> <style data-mw-deduplicate="TemplateStyles:r1259569809">.mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:1px solid var(--border-color-base,#a2a9b1);padding:0.1em;background:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{clear:left;float:left;margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}</style><ul role="navigation" aria-label="Portals" class="noprint portalbox portalborder portalright"> <li class="portalbox-entry"><span class="portalbox-image"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Octicons-terminal.svg" class="mw-file-description"><noscript><img alt="icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/24px-Octicons-terminal.svg.png" decoding="async" width="24" height="28" class="mw-file-element" data-file-width="896" data-file-height="1024"></noscript><span class="lazy-image-placeholder" style="width: 24px;height: 28px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/24px-Octicons-terminal.svg.png" data-alt="icon" data-width="24" data-height="28" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/37px-Octicons-terminal.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/49px-Octicons-terminal.svg.png 2x" data-class="mw-file-element"> </span></a></span></span><span class="portalbox-link"><a href="/wiki/Portal:Computer_programming" title="Portal:Computer programming">Computer programming portal</a></span></li><li class="portalbox-entry"><span class="portalbox-image"><span class="noviewer" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/28px-Free_and_open-source_software_logo_%282009%29.svg.png" decoding="async" width="28" height="28" class="mw-file-element" data-file-width="512" data-file-height="512"></noscript><span class="lazy-image-placeholder" style="width: 28px;height: 28px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/28px-Free_and_open-source_software_logo_%282009%29.svg.png" data-alt="" data-width="28" data-height="28" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/42px-Free_and_open-source_software_logo_%282009%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/56px-Free_and_open-source_software_logo_%282009%29.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="portalbox-link"><a href="/wiki/Portal:Free_and_open-source_software" title="Portal:Free and open-source software">Free and open-source software portal</a></span></li></ul> <ul><li><a href="/wiki/Compatibility_of_C_and_C%2B%2B" title="Compatibility of C and C++">Compatibility of C and C++</a></li> <li><a href="/wiki/Comparison_of_Pascal_and_C" title="Comparison of Pascal and C">Comparison of Pascal and C</a></li> <li><a href="/wiki/Comparison_of_programming_languages" title="Comparison of programming languages">Comparison of programming languages</a></li> <li><a href="/wiki/International_Obfuscated_C_Code_Contest" title="International Obfuscated C Code Contest">International Obfuscated C Code Contest</a></li> <li><a href="/wiki/List_of_C-family_programming_languages" title="List of C-family programming languages">List of C-family programming languages</a></li> <li><a href="/wiki/List_of_C_compilers" class="mw-redirect" title="List of C compilers">List of C compilers</a></li></ul> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(13)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Notes">Notes</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=40" title="Edit section: Notes" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-13 collapsible-block" id="mf-section-13"> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-lower-alpha"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text">The original example code will compile on most modern compilers that are not in strict standard compliance mode, but it does not fully conform to the requirements of either C89 or C99. In fact, C99 requires that a diagnostic message be produced.</span> </li> <li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text">The <code>main</code> function actually has two arguments, <code>int argc</code> and <code>char *argv[]</code>, respectively, which can be used to handle <a href="/wiki/Command-line_argument" class="mw-redirect" title="Command-line argument">command-line arguments</a>. The ISO C standard (section 5.1.2.2.1) requires both forms of <code>main</code> to be supported, which is special treatment not afforded to any other function.</span> </li> <li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text">Prior to C99, an explicit <code>return 0;</code> statement was required at the end of the <code>main</code> function.</span> </li> <li id="cite_note-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-45">^</a></b></span> <span class="reference-text">Code of <code>print_array</code> (not shown) slightly differs,<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span title="The reason for this is unclear. (November 2023)">why?</span></a></i>]</sup> too.</span> </li> </ol></div></div> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(14)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="References">References</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=41" title="Edit section: References" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-14 collapsible-block" id="mf-section-14"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-C_in_a_Nutshell-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-C_in_a_Nutshell_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-C_in_a_Nutshell_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite id="CITEREFPrinzCrawford2005" class="citation book cs1">Prinz, Peter; Crawford, Tony (December 16, 2005). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=4Mfe4sAMFUYC"><i>C in a Nutshell</i></a>. O'Reilly Media, Inc. p. 3. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/9780596550714" title="Special:BookSources/9780596550714"><bdi>9780596550714</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C+in+a+Nutshell&rft.pages=3&rft.pub=O%27Reilly+Media%2C+Inc.&rft.date=2005-12-16&rft.isbn=9780596550714&rft.aulast=Prinz&rft.aufirst=Peter&rft.au=Crawford%2C+Tony&rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3D4Mfe4sAMFUYC&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-dottcl_2-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-dottcl_2_2-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993">Ritchie (1993)</a>: "Thompson had made a brief attempt to produce a system coded in an early version of C—before structures—in 1972, but gave up the effort."</span> </li> <li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3221.htm">"N3221 – Editor's Report, Post January 2024 Strasbourg France Meeting"</a>. <i>ISO/IEC JTC1/SC22/WG14</i>. Open Standards. February 21, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">May 24,</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=ISO%2FIEC+JTC1%2FSC22%2FWG14&rft.atitle=N3221+%E2%80%93+Editor%27s+Report%2C+Post+January+2024+Strasbourg+France+Meeting&rft.date=2024-02-21&rft_id=https%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2Fwww%2Fdocs%2Fn3221.htm&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-dottcl_1-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-dottcl_1_4-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993">Ritchie (1993)</a>: "The scheme of type composition adopted by C owes considerable debt to Algol 68, although it did not, perhaps, emerge in a form that Algol's adherents would approve of."</span> </li> <li id="cite_note-vinsp-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-vinsp_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-vinsp_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20131106064022/http://cs.anu.edu.au/courses/ENGN3213/lectures/lecture6_VERILOG_2010.pdf">"Verilog HDL (and C)"</a> <span class="cs1-format">(PDF)</span>. The Research School of Computer Science at the Australian National University. June 3, 2010. Archived from <a rel="nofollow" class="external text" href="http://cs.anu.edu.au/courses/ENGN3213/lectures/lecture6_VERILOG_2010.pdf">the original</a> <span class="cs1-format">(PDF)</span> on November 6, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">August 19,</span> 2013</span>. <q>1980s: Verilog first introduced; Verilog inspired by the C programming language</q></cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Verilog+HDL+%28and+C%29&rft.pub=The+Research+School+of+Computer+Science+at+the+Australian+National+University&rft.date=2010-06-03&rft_id=http%3A%2F%2Fcs.anu.edu.au%2Fcourses%2FENGN3213%2Flectures%2Flecture6_VERILOG_2010.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://eng.ichacha.net/pronounce/the%20c%20programming%20language.html">"The name is based on, and pronounced like the letter C in the English alphabet"</a>. <i>the c programming language sound</i>. English Chinese Dictionary. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20221117151137/https://eng.ichacha.net/pronounce/the%20c%20programming%20language.html">Archived</a> from the original on November 17, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=the+c+programming+language+sound&rft.atitle=The+name+is+based+on%2C+and+pronounced+like+the+letter+C+in+the+English+alphabet&rft_id=https%3A%2F%2Feng.ichacha.net%2Fpronounce%2Fthe%2520c%2520programming%2520language.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMunoz" class="citation web cs1">Munoz, Daniel. <a rel="nofollow" class="external text" href="https://www.toptal.com/c/after-all-these-years-the-world-is-still-powered-by-c-programming">"After All These Years, the World is Still Powered by C Programming | Toptal"</a>. <i>Toptal Engineering Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 15,</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Toptal+Engineering+Blog&rft.atitle=After+All+These+Years%2C+the+World+is+Still+Powered+by+C+Programming+%7C+Toptal&rft.aulast=Munoz&rft.aufirst=Daniel&rft_id=https%3A%2F%2Fwww.toptal.com%2Fc%2Fafter-all-these-years-the-world-is-still-powered-by-c-programming&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.developer.com/news/c-language-drops-to-lowest-popularity-rating/">"C Language Drops to Lowest Popularity Rating"</a>. <i>Developer.com</i>. August 9, 2016. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220822225609/https://www.developer.com/news/c-language-drops-to-lowest-popularity-rating/">Archived</a> from the original on August 22, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">August 1,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Developer.com&rft.atitle=C+Language+Drops+to+Lowest+Popularity+Rating&rft.date=2016-08-09&rft_id=https%3A%2F%2Fwww.developer.com%2Fnews%2Fc-language-drops-to-lowest-popularity-rating%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-sigplan-9"><span class="mw-cite-backlink">^ <a href="#cite_ref-sigplan_9-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-sigplan_9-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-sigplan_9-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-sigplan_9-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-sigplan_9-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-sigplan_9-5"><sup><i><b>f</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFRitchie1993">Ritchie (1993)</a></span> </li> <li id="cite_note-langpop-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-langpop_10-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20090116080326/http://www.langpop.com/">"Programming Language Popularity"</a>. 2009. Archived from <a rel="nofollow" class="external text" href="http://www.langpop.com/">the original</a> on January 16, 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">January 16,</span> 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Programming+Language+Popularity&rft.date=2009&rft_id=http%3A%2F%2Fwww.langpop.com%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-TIOBE-2009-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-TIOBE-2009_11-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20090504181627/http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">"TIOBE Programming Community Index"</a>. 2009. Archived from <a rel="nofollow" class="external text" href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">the original</a> on May 4, 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">May 6,</span> 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=TIOBE+Programming+Community+Index&rft.date=2009&rft_id=http%3A%2F%2Fwww.tiobe.com%2Findex.php%2Fcontent%2Fpaperinfo%2Ftpci%2Findex.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-ward198308-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-ward198308_12-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFWard1983" class="citation news cs1">Ward, Terry A. (August 1983). <a rel="nofollow" class="external text" href="https://archive.org/stream/byte-magazine-1983-08/1983_08_BYTE_08-08_The_C_Language#page/n267/mode/2up">"Annotated C / A Bibliography of the C Language"</a>. <i>Byte</i>. p. 268<span class="reference-accessdate">. Retrieved <span class="nowrap">January 31,</span> 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Byte&rft.atitle=Annotated+C+%2F+A+Bibliography+of+the+C+Language&rft.pages=268&rft.date=1983-08&rft.aulast=Ward&rft.aufirst=Terry+A.&rft_id=https%3A%2F%2Farchive.org%2Fstream%2Fbyte-magazine-1983-08%2F1983_08_BYTE_08-08_The_C_Language%23page%2Fn267%2Fmode%2F2up&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.tiobe.com/tiobe-index/">"TIOBE Index for September 2024"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240918165843/https://www.tiobe.com/tiobe-index/">Archived</a> from the original on September 18, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">September 20,</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=TIOBE+Index+for+September+2024&rft_id=https%3A%2F%2Fwww.tiobe.com%2Ftiobe-index%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-NFDsZ-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-NFDsZ_14-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRitchie" class="citation web cs1">Ritchie, Dennis. <a rel="nofollow" class="external text" href="https://www.lysator.liu.se/c/dmr-on-histories.html">"BCPL to B to C"</a>. <i>lysator.liu.se</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20191212221532/http://www.lysator.liu.se/c/dmr-on-histories.html">Archived</a> from the original on December 12, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">September 10,</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=lysator.liu.se&rft.atitle=BCPL+to+B+to+C&rft.aulast=Ritchie&rft.aufirst=Dennis&rft_id=https%3A%2F%2Fwww.lysator.liu.se%2Fc%2Fdmr-on-histories.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Ars-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-Ars_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Ars_15-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Ars_15-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Ars_15-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Ars_15-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJensen2020" class="citation web cs1">Jensen, Richard (December 9, 2020). <a rel="nofollow" class="external text" href="https://arstechnica.com/features/2020/12/a-damn-stupid-thing-to-do-the-origins-of-c/">"<span class="cs1-kern-left"></span>"A damn stupid thing to do"—the origins of C"</a>. <i>Ars Technica</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220328143845/https://arstechnica.com/features/2020/12/a-damn-stupid-thing-to-do-the-origins-of-c/">Archived</a> from the original on March 28, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">March 28,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Ars+Technica&rft.atitle=%22A+damn+stupid+thing+to+do%22%E2%80%94the+origins+of+C&rft.date=2020-12-09&rft.aulast=Jensen&rft.aufirst=Richard&rft_id=https%3A%2F%2Farstechnica.com%2Ffeatures%2F2020%2F12%2Fa-damn-stupid-thing-to-do-the-origins-of-c%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-unixport-16"><span class="mw-cite-backlink">^ <a href="#cite_ref-unixport_16-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-unixport_16-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJohnsonRitchie1978" class="citation journal cs1"><a href="/wiki/Stephen_C._Johnson" title="Stephen C. Johnson">Johnson, S. C.</a>; <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Ritchie, D. M.</a> (1978). "Portability of C Programs and the UNIX System". <i>Bell System Tech. J</i>. <b>57</b> (6): 2021–2048. <a href="/wiki/CiteSeerX_(identifier)" class="mw-redirect" title="CiteSeerX (identifier)">CiteSeerX</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.138.35">10.1.1.138.35</a></span>. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1002%2Fj.1538-7305.1978.tb02141.x">10.1002/j.1538-7305.1978.tb02141.x</a>. <a href="/wiki/ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0005-8580">0005-8580</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a> <a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:17510065">17510065</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Bell+System+Tech.+J.&rft.atitle=Portability+of+C+Programs+and+the+UNIX+System&rft.volume=57&rft.issue=6&rft.pages=2021-2048&rft.date=1978&rft_id=https%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fsummary%3Fdoi%3D10.1.1.138.35%23id-name%3DCiteSeerX&rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A17510065%23id-name%3DS2CID&rft.issn=0005-8580&rft_id=info%3Adoi%2F10.1002%2Fj.1538-7305.1978.tb02141.x&rft.aulast=Johnson&rft.aufirst=S.+C.&rft.au=Ritchie%2C+D.+M.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> (Note: The PDF is an OCR scan of the original, and contains a rendering of "IBM 370" as "IBM 310".)</span> </li> <li id="cite_note-QtqTh-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-QtqTh_17-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMcIlroy1987" class="citation techreport cs1"><a href="/wiki/Doug_McIlroy" class="mw-redirect" title="Doug McIlroy">McIlroy, M. D.</a> (1987). <a rel="nofollow" class="external text" href="http://www.cs.dartmouth.edu/~doug/reader.pdf"><i>A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986</i></a> <span class="cs1-format">(PDF)</span> (Technical report). CSTR. Bell Labs. p. 10. 139. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171111151817/http://www.cs.dartmouth.edu/~doug/reader.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on November 11, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">February 1,</span> 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=report&rft.btitle=A+Research+Unix+reader%3A+annotated+excerpts+from+the+Programmer%27s+Manual%2C+1971%E2%80%931986&rft.series=CSTR&rft.pages=10&rft.pub=Bell+Labs&rft.date=1987&rft.aulast=McIlroy&rft.aufirst=M.+D.&rft_id=http%3A%2F%2Fwww.cs.dartmouth.edu%2F~doug%2Freader.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-k&r1e-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-k&r1e_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKernighanRitchie1978" class="citation book cs1"><a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Kernighan, Brian W.</a>; <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (February 1978). <a href="/wiki/The_C_Programming_Language" title="The C Programming Language"><i>The C Programming Language</i></a> (1st ed.). <a href="/wiki/Englewood_Cliffs,_NJ" class="mw-redirect" title="Englewood Cliffs, NJ">Englewood Cliffs, NJ</a>: <a href="/wiki/Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0-13-110163-0" title="Special:BookSources/978-0-13-110163-0"><bdi>978-0-13-110163-0</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+C+Programming+Language&rft.place=Englewood+Cliffs%2C+NJ&rft.edition=1st&rft.pub=Prentice+Hall&rft.date=1978-02&rft.isbn=978-0-13-110163-0&rft.aulast=Kernighan&rft.aufirst=Brian+W.&rft.au=Ritchie%2C+Dennis+M.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-qOvzA-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-qOvzA_19-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1">"C manual pages". <a rel="nofollow" class="external text" href="https://nxmnpg.lemoda.net/7/c78"><i>FreeBSD Miscellaneous Information Manual</i></a> (FreeBSD 13.0 ed.). May 30, 2011. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210121024455/https://nxmnpg.lemoda.net/7/c78">Archived</a> from the original on January 21, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">January 15,</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=bookitem&rft.atitle=C+manual+pages&rft.btitle=FreeBSD+Miscellaneous+Information+Manual&rft.edition=FreeBSD+13.0&rft.date=2011-05-30&rft_id=https%3A%2F%2Fnxmnpg.lemoda.net%2F7%2Fc78&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <a rel="nofollow" class="external autonumber" href="https://www.freebsd.org/cgi/man.cgi?query=c78&apropos=0&sektion=0&manpath=FreeBSD+9-current&arch=default&format=html">[1]</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210121033654/https://www.freebsd.org/cgi/man.cgi?query=c78&apropos=0&sektion=0&manpath=FreeBSD+9-current&arch=default&format=html">Archived</a> January 21, 2021, at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a></span> </li> <li id="cite_note-k&r2e-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-k&r2e_20-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Kernighan, Brian W.</a>; <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (March 1988). <a href="/wiki/The_C_Programming_Language" title="The C Programming Language"><i>The C Programming Language</i></a> (2nd ed.). <a href="/wiki/Englewood_Cliffs,_NJ" class="mw-redirect" title="Englewood Cliffs, NJ">Englewood Cliffs, NJ</a>: <a href="/wiki/Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0-13-110362-7" title="Special:BookSources/978-0-13-110362-7"><bdi>978-0-13-110362-7</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+C+Programming+Language&rft.place=Englewood+Cliffs%2C+NJ&rft.edition=2nd&rft.pub=Prentice+Hall&rft.date=1988-03&rft.isbn=978-0-13-110362-7&rft.aulast=Kernighan&rft.aufirst=Brian+W.&rft.au=Ritchie%2C+Dennis+M.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-SkKfZ-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-SkKfZ_21-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFStroustrup2002" class="citation report cs1"><a href="/wiki/Bjarne_Stroustrup" title="Bjarne Stroustrup">Stroustrup, Bjarne</a> (2002). <a rel="nofollow" class="external text" href="http://stroustrup.com/sibling_rivalry.pdf">Sibling rivalry: C and C++</a> <span class="cs1-format">(PDF)</span> (Report). AT&T Labs. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20140824072719/http://www.stroustrup.com/sibling_rivalry.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on August 24, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">April 14,</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=report&rft.btitle=Sibling+rivalry%3A+C+and+C%2B%2B&rft.pub=AT%26T+Labs&rft.date=2002&rft.aulast=Stroustrup&rft.aufirst=Bjarne&rft_id=http%3A%2F%2Fstroustrup.com%2Fsibling_rivalry.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20240717164722/https://www.cs.man.ac.uk/~pjj/cs211/c_rationale/node2.html">"Rationale for American National Standard for Information Systems – Programming Language – C"</a>. Archived from <a rel="nofollow" class="external text" href="https://www.cs.man.ac.uk/~pjj/cs211/c_rationale/node2.html">the original</a> on July 17, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">July 17,</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Rationale+for+American+National+Standard+for+Information+Systems+%E2%80%93+Programming+Language+%E2%80%93+C&rft_id=https%3A%2F%2Fwww.cs.man.ac.uk%2F~pjj%2Fcs211%2Fc_rationale%2Fnode2.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-NWUon-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-NWUon_23-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://www.iso.org/standard/23909.html"><i>C Integrity</i></a>. International Organization for Standardization. March 30, 1995. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180725033429/https://www.iso.org/standard/23909.html">Archived</a> from the original on July 25, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">July 24,</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C+Integrity&rft.pub=International+Organization+for+Standardization&rft.date=1995-03-30&rft_id=https%3A%2F%2Fwww.iso.org%2Fstandard%2F23909.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-WG14-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-WG14_24-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/">"JTC1/SC22/WG14 – C"</a>. <i>Home page</i>. ISO/IEC. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180212100115/http://www.open-std.org/JTC1/SC22/WG14/">Archived</a> from the original on February 12, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">June 2,</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Home+page&rft.atitle=JTC1%2FSC22%2FWG14+%E2%80%93+C&rft_id=http%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-YTKIv-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-YTKIv_25-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFAndrew_Binstock2011" class="citation web cs1">Andrew Binstock (October 12, 2011). <a rel="nofollow" class="external text" href="http://www.drdobbs.com/cpp/interview-with-herb-sutter/231900562">"Interview with Herb Sutter"</a>. <i><a href="/wiki/Dr._Dobbs" class="mw-redirect" title="Dr. Dobbs">Dr. Dobbs</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130802070446/http://www.drdobbs.com/cpp/interview-with-herb-sutter/231900562">Archived</a> from the original on August 2, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">September 7,</span> 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Dr.+Dobbs&rft.atitle=Interview+with+Herb+Sutter&rft.date=2011-10-12&rft.au=Andrew+Binstock&rft_id=http%3A%2F%2Fwww.drdobbs.com%2Fcpp%2Finterview-with-herb-sutter%2F231900562&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-N3132-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-N3132_26-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3132.pdf">"WG14-N3132 : Revised C23 Schedule"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. June 4, 2023. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230609204739/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3132.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on June 9, 2023.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=open-std.org&rft.atitle=WG14-N3132+%3A+Revised+C23+Schedule&rft.date=2023-06-04&rft_id=https%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2Fwww%2Fdocs%2Fn3132.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-N3220-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-N3220_27-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf">"WG14-N3220 : Working Draft, C2y"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. February 21, 2024. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240226053735/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 26, 2024.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=open-std.org&rft.atitle=WG14-N3220+%3A+Working+Draft%2C+C2y&rft.date=2024-02-21&rft_id=https%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2Fwww%2Fdocs%2Fn3220.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-TR18037-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-TR18037_28-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf">"TR 18037: Embedded C"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. April 4, 2006. ISO/IEC JTC1 SC22 WG14 N1169. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210225224616/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 25, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">July 26,</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=open-std.org&rft.atitle=TR+18037%3A+Embedded+C&rft.date=2006-04-04&rft_id=https%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2Fwww%2Fdocs%2Fn1169.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-h&s5e-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-h&s5e_29-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHarbisonSteele2002" class="citation book cs1">Harbison, Samuel P.; <a href="/wiki/Guy_L._Steele,_Jr." class="mw-redirect" title="Guy L. Steele, Jr.">Steele, Guy L.</a> (2002). <i>C: A Reference Manual</i> (5th ed.). <a href="/wiki/Englewood_Cliffs,_NJ" class="mw-redirect" title="Englewood Cliffs, NJ">Englewood Cliffs, NJ</a>: <a href="/wiki/Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0-13-089592-9" title="Special:BookSources/978-0-13-089592-9"><bdi>978-0-13-089592-9</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C%3A+A+Reference+Manual&rft.place=Englewood+Cliffs%2C+NJ&rft.edition=5th&rft.pub=Prentice+Hall&rft.date=2002&rft.isbn=978-0-13-089592-9&rft.aulast=Harbison&rft.aufirst=Samuel+P.&rft.au=Steele%2C+Guy+L.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> Contains a <a href="/wiki/Backus-Naur_form" class="mw-redirect" title="Backus-Naur form">BNF</a> grammar for C.</span> </li> <li id="cite_note-FOOTNOTEKernighanRitchie1988192-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988192_30-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, p. 192.</span> </li> <li id="cite_note-FOOTNOTEKernighanRitchie19783-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie19783_31-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1978">Kernighan & Ritchie (1978)</a>, p. 3.</span> </li> <li id="cite_note-ISOIEC_9899-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-ISOIEC_9899_32-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf">"ISO/IEC 9899:201x (ISO C11) Committee Draft"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. December 2, 2010. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171222215122/http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on December 22, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">September 16,</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=open-std.org&rft.atitle=ISO%2FIEC+9899%3A201x+%28ISO+C11%29+Committee+Draft&rft.date=2010-12-02&rft_id=http%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg14%2Fwww%2Fdocs%2Fn1548.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-FOOTNOTEKernighanRitchie1988192,_259-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988192,_259_33-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, pp. 192, 259.</span> </li> <li id="cite_note-AutoTX-8-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-AutoTX-8_34-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.cs.ucr.edu/~nxiao/cs10/errors.htm">"10 Common Programming Mistakes in C++"</a>. <i>Cs.ucr.edu</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20081021080953/http://www.cs.ucr.edu/~nxiao/cs10/errors.htm">Archived</a> from the original on October 21, 2008<span class="reference-accessdate">. Retrieved <span class="nowrap">June 26,</span> 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Cs.ucr.edu&rft.atitle=10+Common+Programming+Mistakes+in+C%2B%2B&rft_id=http%3A%2F%2Fwww.cs.ucr.edu%2F~nxiao%2Fcs10%2Ferrors.htm&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-AutoTX-9-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-AutoTX-9_35-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSchultz2004" class="citation book cs1">Schultz, Thomas (2004). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=rI0c8kWbxooC&pg=PT47"><i>C and the 8051</i></a> (3rd ed.). Otsego, MI: PageFree Publishing Inc. p. 20. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1-58961-237-2" title="Special:BookSources/978-1-58961-237-2"><bdi>978-1-58961-237-2</bdi></a><span class="reference-accessdate">. Retrieved <span class="nowrap">February 10,</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C+and+the+8051&rft.place=Otsego%2C+MI&rft.pages=20&rft.edition=3rd&rft.pub=PageFree+Publishing+Inc.&rft.date=2004&rft.isbn=978-1-58961-237-2&rft.aulast=Schultz&rft.aufirst=Thomas&rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DrI0c8kWbxooC%26pg%3DPT47&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-FOOTNOTEKernighanRitchie19786-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie19786_36-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1978">Kernighan & Ritchie (1978)</a>, p. 6.</span> </li> <li id="cite_note-bk21st-40"><span class="mw-cite-backlink">^ <a href="#cite_ref-bk21st_40-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-bk21st_40-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-bk21st_40-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-bk21st_40-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-bk21st_40-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-bk21st_40-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-bk21st_40-6"><sup><i><b>g</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKlemens2013" class="citation book cs1"><a href="/wiki/Ben_Klemens" title="Ben Klemens">Klemens, Ben</a> (2013). <i>21st Century C</i>. <a href="/wiki/O%27Reilly_Media" title="O'Reilly Media">O'Reilly Media</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1-4493-2714-9" title="Special:BookSources/978-1-4493-2714-9"><bdi>978-1-4493-2714-9</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=21st+Century+C&rft.pub=O%27Reilly+Media&rft.date=2013&rft.isbn=978-1-4493-2714-9&rft.aulast=Klemens&rft.aufirst=Ben&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Nmlwr-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-Nmlwr_41-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFeuerGehani1982" class="citation journal cs1">Feuer, Alan R.; Gehani, Narain H. (March 1982). "Comparison of the Programming Languages C and Pascal". <i>ACM Computing Surveys</i>. <b>14</b> (1): 73–92. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F356869.356872">10.1145/356869.356872</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a> <a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:3136859">3136859</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=ACM+Computing+Surveys&rft.atitle=Comparison+of+the+Programming+Languages+C+and+Pascal&rft.volume=14&rft.issue=1&rft.pages=73-92&rft.date=1982-03&rft_id=info%3Adoi%2F10.1145%2F356869.356872&rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A3136859%23id-name%3DS2CID&rft.aulast=Feuer&rft.aufirst=Alan+R.&rft.au=Gehani%2C+Narain+H.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-FOOTNOTEKernighanRitchie1988122-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988122_42-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, p. 122.</span> </li> <li id="cite_note-fedoraproject-43"><span class="mw-cite-backlink"><b><a href="#cite_ref-fedoraproject_43-0">^</a></b></span> <span class="reference-text">For example, gcc provides _FORTIFY_SOURCE. <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://fedoraproject.org/wiki/Security/Features">"Security Features: Compile Time Buffer Checks (FORTIFY_SOURCE)"</a>. fedoraproject.org. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20070107153447/http://fedoraproject.org/wiki/Security/Features">Archived</a> from the original on January 7, 2007<span class="reference-accessdate">. Retrieved <span class="nowrap">August 5,</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Security+Features%3A+Compile+Time+Buffer+Checks+%28FORTIFY_SOURCE%29&rft.pub=fedoraproject.org&rft_id=http%3A%2F%2Ffedoraproject.org%2Fwiki%2FSecurity%2FFeatures&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Programming_with_C-44"><span class="mw-cite-backlink"><b><a href="#cite_ref-Programming_with_C_44-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFเอี่ยมสิริวงศ์2016" class="citation book cs1">เอี่ยมสิริวงศ์, โอภาศ (2016). <i>Programming with C</i>. Bangkok, Thailand: SE-EDUCATION PUBLIC COMPANY LIMITED. pp. 225–230. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-616-08-2740-4" title="Special:BookSources/978-616-08-2740-4"><bdi>978-616-08-2740-4</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Programming+with+C&rft.place=Bangkok%2C+Thailand&rft.pages=225-230&rft.pub=SE-EDUCATION+PUBLIC+COMPANY+LIMITED&rft.date=2016&rft.isbn=978-616-08-2740-4&rft.aulast=%E0%B9%80%E0%B8%AD%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%A1%E0%B8%AA%E0%B8%B4%E0%B8%A3%E0%B8%B4%E0%B8%A7%E0%B8%87%E0%B8%A8%E0%B9%8C&rft.aufirst=%E0%B9%82%E0%B8%AD%E0%B8%A0%E0%B8%B2%E0%B8%A8&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Raymond1996-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-Raymond1996_46-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRaymond1996" class="citation book cs1"><a href="/wiki/Eric_S._Raymond" title="Eric S. Raymond">Raymond, Eric S.</a> (October 11, 1996). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=g80P_4v4QbIC&pg=PA432"><i>The New Hacker's Dictionary</i></a> (3rd ed.). MIT Press. p. 432. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0-262-68092-9" title="Special:BookSources/978-0-262-68092-9"><bdi>978-0-262-68092-9</bdi></a><span class="reference-accessdate">. Retrieved <span class="nowrap">August 5,</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+New+Hacker%27s+Dictionary&rft.pages=432&rft.edition=3rd&rft.pub=MIT+Press&rft.date=1996-10-11&rft.isbn=978-0-262-68092-9&rft.aulast=Raymond&rft.aufirst=Eric+S.&rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3Dg80P_4v4QbIC%26pg%3DPA432&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-MI2L0-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-MI2L0_47-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.unix.com/man-page/FreeBSD/1/lint">"Man Page for lint (freebsd Section 1)"</a>. <i>unix.com</i>. May 24, 2001<span class="reference-accessdate">. Retrieved <span class="nowrap">July 15,</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=unix.com&rft.atitle=Man+Page+for+lint+%28freebsd+Section+1%29&rft.date=2001-05-24&rft_id=http%3A%2F%2Fwww.unix.com%2Fman-page%2FFreeBSD%2F1%2Flint&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-48"><span class="mw-cite-backlink"><b><a href="#cite_ref-48">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.stanford.edu/class/archive/cs/cs107/cs107.1236/resources/valgrind.html">"CS107 Valgrind Memcheck"</a>. <i>web.stanford.edu</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 23,</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=web.stanford.edu&rft.atitle=CS107+Valgrind+Memcheck&rft_id=https%3A%2F%2Fweb.stanford.edu%2Fclass%2Farchive%2Fcs%2Fcs107%2Fcs107.1236%2Fresources%2Fvalgrind.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-49"><span class="mw-cite-backlink"><b><a href="#cite_ref-49">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHastingsJoyce" class="citation journal cs1">Hastings, Reed; Joyce, Bob. <a rel="nofollow" class="external text" href="https://web.stanford.edu/class/cs343/resources/purify.pdf">"Purify: Fast Detection of Memory Leaks and Access Errors"</a> <span class="cs1-format">(PDF)</span>. <i>Pure Software Inc.</i>: 9.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Pure+Software+Inc.&rft.atitle=Purify%3A+Fast+Detection+of+Memory+Leaks+and+Access+Errors&rft.pages=9&rft.aulast=Hastings&rft.aufirst=Reed&rft.au=Joyce%2C+Bob&rft_id=https%3A%2F%2Fweb.stanford.edu%2Fclass%2Fcs343%2Fresources%2Fpurify.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Zh3CW-50"><span class="mw-cite-backlink"><b><a href="#cite_ref-Zh3CW_50-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFDaleWeems2014" class="citation book cs1">Dale, Nell B.; Weems, Chip (2014). <i>Programming and problem solving with C++</i> (6th ed.). Burlington, Massachusetts: Jones & Bartlett Learning. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1449694289" title="Special:BookSources/978-1449694289"><bdi>978-1449694289</bdi></a>. <a href="/wiki/OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/894992484">894992484</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Programming+and+problem+solving+with+C%2B%2B&rft.place=Burlington%2C+Massachusetts&rft.edition=6th&rft.pub=Jones+%26+Bartlett+Learning&rft.date=2014&rft_id=info%3Aoclcnum%2F894992484&rft.isbn=978-1449694289&rft.aulast=Dale&rft.aufirst=Nell+B.&rft.au=Weems%2C+Chip&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-51"><span class="mw-cite-backlink"><b><a href="#cite_ref-51">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20210531161841/https://ict.iitk.ac.in/c-the-mother-of-all-languages/">"C – the mother of all languages"</a>. <i>ICT Academy at IITK</i>. November 13, 2018. Archived from <a rel="nofollow" class="external text" href="https://ict.iitk.ac.in/c-the-mother-of-all-languages/">the original</a> on May 31, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=ICT+Academy+at+IITK&rft.atitle=C+%E2%80%93+the+mother+of+all+languages&rft.date=2018-11-13&rft_id=https%3A%2F%2Fict.iitk.ac.in%2Fc-the-mother-of-all-languages%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-52"><span class="mw-cite-backlink"><b><a href="#cite_ref-52">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python.org/3/extending/extending.html">"1. Extending Python with C or C++"</a>. <i>Python 3.10.7 documentation</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121105232707/https://docs.python.org/3/extending/extending.html">Archived</a> from the original on November 5, 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Python+3.10.7+documentation&rft.atitle=1.+Extending+Python+with+C+or+C%2B%2B&rft_id=https%3A%2F%2Fdocs.python.org%2F3%2Fextending%2Fextending.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-53"><span class="mw-cite-backlink"><b><a href="#cite_ref-53">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFConrad2018" class="citation web cs1">Conrad, Michael (January 22, 2018). <a rel="nofollow" class="external text" href="https://opensource.com/article/18/1/perl-5-engine">"An overview of the Perl 5 engine"</a>. <i>Opensource.com</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220526105419/https://opensource.com/article/18/1/perl-5-engine">Archived</a> from the original on May 26, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Opensource.com&rft.atitle=An+overview+of+the+Perl+5+engine&rft.date=2018-01-22&rft.aulast=Conrad&rft.aufirst=Michael&rft_id=https%3A%2F%2Fopensource.com%2Farticle%2F18%2F1%2Fperl-5-engine&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-54"><span class="mw-cite-backlink"><b><a href="#cite_ref-54">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/">"To Ruby From C and C++"</a>. <i>Ruby Programming Language</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130812003928/https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/">Archived</a> from the original on August 12, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Ruby+Programming+Language&rft.atitle=To+Ruby+From+C+and+C%2B%2B&rft_id=https%3A%2F%2Fwww.ruby-lang.org%2Fen%2Fdocumentation%2Fruby-from-other-languages%2Fto-ruby-from-c-and-cpp%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-55"><span class="mw-cite-backlink"><b><a href="#cite_ref-55">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPara2022" class="citation web cs1">Para, Michael (August 3, 2022). <a rel="nofollow" class="external text" href="https://www.freecodecamp.org/news/what-is-php-write-your-first-php-program/">"What is PHP? How to Write Your First PHP Program"</a>. <i>freeCodeCamp</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220804050401/https://www.freecodecamp.org/news/what-is-php-write-your-first-php-program/">Archived</a> from the original on August 4, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=freeCodeCamp&rft.atitle=What+is+PHP%3F+How+to+Write+Your+First+PHP+Program&rft.date=2022-08-03&rft.aulast=Para&rft.aufirst=Michael&rft_id=https%3A%2F%2Fwww.freecodecamp.org%2Fnews%2Fwhat-is-php-write-your-first-php-program%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Dobbs_1995-56"><span class="mw-cite-backlink"><b><a href="#cite_ref-Dobbs_1995_56-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation book cs1"><i>Dr. Dobb's Sourcebook</i>. U.S.: Miller Freeman, Inc. November–December 1995.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Dr.+Dobb%27s+Sourcebook&rft.place=U.S.&rft.pub=Miller+Freeman%2C+Inc.&rft.date=1995-11%2F1995-12&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-linuxjournal_2005-57"><span class="mw-cite-backlink"><b><a href="#cite_ref-linuxjournal_2005_57-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.linuxjournal.com/article/6863">"Using C for CGI Programming"</a>. linuxjournal.com. March 1, 2005. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20100213075858/http://www.linuxjournal.com/article/6863">Archived</a> from the original on February 13, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">January 4,</span> 2010</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Using+C+for+CGI+Programming&rft.pub=linuxjournal.com&rft.date=2005-03-01&rft_id=http%3A%2F%2Fwww.linuxjournal.com%2Farticle%2F6863&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-58"><span class="mw-cite-backlink"><b><a href="#cite_ref-58">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPerkins2013" class="citation web cs1">Perkins, Luc (September 17, 2013). <a rel="nofollow" class="external text" href="https://medium.com/@lucperkins/web-development-in-c-crazy-or-crazy-like-a-fox-ff723209f8f5">"Web development in C: crazy? Or crazy like a fox?"</a>. <i>Medium</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20141004135317/https://medium.com/@lucperkins/web-development-in-c-crazy-or-crazy-like-a-fox-ff723209f8f5">Archived</a> from the original on October 4, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">April 8,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Medium&rft.atitle=Web+development+in+C%3A+crazy%3F+Or+crazy+like+a+fox%3F&rft.date=2013-09-17&rft.aulast=Perkins&rft.aufirst=Luc&rft_id=https%3A%2F%2Fmedium.com%2F%40lucperkins%2Fweb-development-in-c-crazy-or-crazy-like-a-fox-ff723209f8f5&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-59"><span class="mw-cite-backlink"><b><a href="#cite_ref-59">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMunoz" class="citation web cs1">Munoz, Daniel. <a rel="nofollow" class="external text" href="https://www.toptal.com/c/after-all-these-years-the-world-is-still-powered-by-c-programming">"After All These Years, the World is Still Powered by C Programming"</a>. <i>Toptal Engineering Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Toptal+Engineering+Blog&rft.atitle=After+All+These+Years%2C+the+World+is+Still+Powered+by+C+Programming&rft.aulast=Munoz&rft.aufirst=Daniel&rft_id=https%3A%2F%2Fwww.toptal.com%2Fc%2Fafter-all-these-years-the-world-is-still-powered-by-c-programming&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-60"><span class="mw-cite-backlink"><b><a href="#cite_ref-60">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMetz" class="citation magazine cs1">Metz, Cade. <a rel="nofollow" class="external text" href="https://www.wired.com/2011/10/thedennisritchieeffect/">"Dennis Ritchie: The Shoulders Steve Jobs Stood On"</a>. <i>Wired</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220412005125/http://www.wired.com/2011/10/thedennisritchieeffect/">Archived</a> from the original on April 12, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">April 19,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Wired&rft.atitle=Dennis+Ritchie%3A+The+Shoulders+Steve+Jobs+Stood+On&rft.aulast=Metz&rft.aufirst=Cade&rft_id=https%3A%2F%2Fwww.wired.com%2F2011%2F10%2Fthedennisritchieeffect%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-61"><span class="mw-cite-backlink"><b><a href="#cite_ref-61">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFcorob-msft2022" class="citation web cs1">corob-msft (March 31, 2022). <a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword">"Pragma directives and the __pragma and _Pragma keywords"</a>. <i>Microsoft Learn</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220924075131/https://learn.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword">Archived</a> from the original on September 24, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">September 24,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Microsoft+Learn&rft.atitle=Pragma+directives+and+the+__pragma+and+_Pragma+keywords&rft.date=2022-03-31&rft.au=corob-msft&rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fcpp%2Fpreprocessor%2Fpragma-directives-and-the-pragma-keyword&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-62"><span class="mw-cite-backlink"><b><a href="#cite_ref-62">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html">"Pragmas (The C Preprocessor)"</a>. <i>GCC, the GNU Compiler Collection</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20020617041757/https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html">Archived</a> from the original on June 17, 2002<span class="reference-accessdate">. Retrieved <span class="nowrap">September 24,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=GCC%2C+the+GNU+Compiler+Collection&rft.atitle=Pragmas+%28The+C+Preprocessor%29&rft_id=https%3A%2F%2Fgcc.gnu.org%2Fonlinedocs%2Fcpp%2FPragmas.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-63"><span class="mw-cite-backlink"><b><a href="#cite_ref-63">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas.html">"Pragmas"</a>. <i>Intel C++ Compiler Classic Developer Guide and Reference</i>. Intel. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220410113529/https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas.html">Archived</a> from the original on April 10, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">April 10,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=Intel+C%2B%2B+Compiler+Classic+Developer+Guide+and+Reference&rft.atitle=Pragmas&rft_id=https%3A%2F%2Fwww.intel.com%2Fcontent%2Fwww%2Fus%2Fen%2Fdevelop%2Fdocumentation%2Fcpp-compiler-developer-guide-and-reference%2Ftop%2Fcompiler-reference%2Fpragmas.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-64"><span class="mw-cite-backlink"><b><a href="#cite_ref-64">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://apenwarr.ca/log/20070813">"In praise of the C preprocessor"</a>. <i>apenwarr</i>. August 13, 2007<span class="reference-accessdate">. Retrieved <span class="nowrap">July 9,</span> 2023</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=apenwarr&rft.atitle=In+praise+of+the+C+preprocessor&rft.date=2007-08-13&rft_id=https%3A%2F%2Fapenwarr.ca%2Flog%2F20070813&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-65"><span class="mw-cite-backlink"><b><a href="#cite_ref-65">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRoberts1989" class="citation web cs1">Roberts, Eric S. (March 21, 1989). <a rel="nofollow" class="external text" href="http://bitsavers.informatik.uni-stuttgart.de/pdf/dec/tech_reports/SRC-RR-40.pdf">"Implementing Exceptions in C"</a> <span class="cs1-format">(PDF)</span>. <a href="/wiki/DEC_Systems_Research_Center" title="DEC Systems Research Center">DEC Systems Research Center</a>. SRC-RR-40. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170115152453/http://bitsavers.informatik.uni-stuttgart.de/pdf/dec/tech_reports/SRC-RR-40.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on January 15, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">January 4,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Implementing+Exceptions+in+C&rft.pub=DEC+Systems+Research+Center&rft.date=1989-03-21&rft.aulast=Roberts&rft.aufirst=Eric+S.&rft_id=http%3A%2F%2Fbitsavers.informatik.uni-stuttgart.de%2Fpdf%2Fdec%2Ftech_reports%2FSRC-RR-40.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-MmjNC-66"><span class="mw-cite-backlink"><b><a href="#cite_ref-MmjNC_66-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMcMillan2013" class="citation magazine cs1">McMillan, Robert (August 1, 2013). <a rel="nofollow" class="external text" href="https://www.wired.com/2013/01/java-no-longer-a-favorite/">"Is Java Losing Its Mojo?"</a>. <i><a href="/wiki/Wired_(magazine)" title="Wired (magazine)">Wired</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170215115409/https://www.wired.com/2013/01/java-no-longer-a-favorite/">Archived</a> from the original on February 15, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">March 5,</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=Wired&rft.atitle=Is+Java+Losing+Its+Mojo%3F&rft.date=2013-08-01&rft.aulast=McMillan&rft.aufirst=Robert&rft_id=https%3A%2F%2Fwww.wired.com%2F2013%2F01%2Fjava-no-longer-a-favorite%2F&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-kafmy-67"><span class="mw-cite-backlink"><b><a href="#cite_ref-kafmy_67-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFO'Regan2015" class="citation book cs1">O'Regan, Gerard (September 24, 2015). <i>Pillars of computing : a compendium of select, pivotal technology firms</i>. Springer. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-3319214641" title="Special:BookSources/978-3319214641"><bdi>978-3319214641</bdi></a>. <a href="/wiki/OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/922324121">922324121</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Pillars+of+computing+%3A+a+compendium+of+select%2C+pivotal+technology+firms&rft.pub=Springer&rft.date=2015-09-24&rft_id=info%3Aoclcnum%2F922324121&rft.isbn=978-3319214641&rft.aulast=O%27Regan&rft.aufirst=Gerard&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-dSI6f-68"><span class="mw-cite-backlink"><b><a href="#cite_ref-dSI6f_68-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRauchwerger2004" class="citation book cs1">Rauchwerger, Lawrence (2004). <i>Languages and compilers for parallel computing : 16th international workshop, LCPC 2003, College Station, TX, USA, October 2–4, 2003 : revised papers</i>. Springer. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-3540246442" title="Special:BookSources/978-3540246442"><bdi>978-3540246442</bdi></a>. <a href="/wiki/OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/57965544">57965544</a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Languages+and+compilers+for+parallel+computing+%3A+16th+international+workshop%2C+LCPC+2003%2C+College+Station%2C+TX%2C+USA%2C+October+2%E2%80%934%2C+2003+%3A+revised+papers&rft.pub=Springer&rft.date=2004&rft_id=info%3Aoclcnum%2F57965544&rft.isbn=978-3540246442&rft.aulast=Rauchwerger&rft.aufirst=Lawrence&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-stroustrup_1993-69"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup_1993_69-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFStroustrup1993" class="citation web cs1"><a href="/wiki/Bjarne_Stroustrup" title="Bjarne Stroustrup">Stroustrup, Bjarne</a> (1993). <a rel="nofollow" class="external text" href="http://www.stroustrup.com/hopl2.pdf">"A History of C++: 1979–1991"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190202050609/http://www.stroustrup.com/hopl2.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 2, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">June 9,</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=A+History+of+C%2B%2B%3A+1979%E2%80%931991&rft.date=1993&rft.aulast=Stroustrup&rft.aufirst=Bjarne&rft_id=http%3A%2F%2Fwww.stroustrup.com%2Fhopl2.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></span> </li> </ol></div></div> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(15)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Sources">Sources</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=42" title="Edit section: Sources" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-15 collapsible-block" id="mf-section-15"> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRitchie1993" class="citation journal cs1"><a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (March 1993). <a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F155360.155580">"The Development of the C Language"</a>. <i>ACM SIGPLAN Notices</i>. <b>28</b> (3). ACM: 201–208. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F155360.155580">10.1145/155360.155580</a></span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=ACM+SIGPLAN+Notices&rft.atitle=The+Development+of+the+C+Language&rft.volume=28&rft.issue=3&rft.pages=201-208&rft.date=1993-03&rft_id=info%3Adoi%2F10.1145%2F155360.155580&rft.aulast=Ritchie&rft.aufirst=Dennis+M.&rft_id=https%3A%2F%2Fdoi.org%2F10.1145%252F155360.155580&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <ul><li>By courtesy of the author, also at <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRitchie" class="citation web cs1">Ritchie, Dennis M. <a rel="nofollow" class="external text" href="https://www.bell-labs.com/usr/dmr/www/chist.html">"Chistory"</a>. <i>www.bell-labs.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 29,</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=unknown&rft.jtitle=www.bell-labs.com&rft.atitle=Chistory&rft.aulast=Ritchie&rft.aufirst=Dennis+M&rft_id=https%3A%2F%2Fwww.bell-labs.com%2Fusr%2Fdmr%2Fwww%2Fchist.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li></ul></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation conference cs1">Ritchie, Dennis M. (1993). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190411002159/http://www.bell-labs.com/usr/dmr/www/chist.html">"The Development of the C Language"</a>. <i>The Second ACM SIGPLAN Conference on History of Programming Languages (HOPL-II)</i>. <a href="/wiki/Association_for_Computing_Machinery" title="Association for Computing Machinery">ACM</a>. pp. 201–208. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F154766.155580">10.1145/154766.155580</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/0-89791-570-4" title="Special:BookSources/0-89791-570-4"><bdi>0-89791-570-4</bdi></a>. Archived from <a rel="nofollow" class="external text" href="http://www.bell-labs.com/usr/dmr/www/chist.html">the original</a> on April 11, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">November 4,</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=conference&rft.atitle=The+Development+of+the+C+Language&rft.btitle=The+Second+ACM+SIGPLAN+Conference+on+History+of+Programming+Languages+%28HOPL-II%29&rft.pages=201-208&rft.pub=ACM&rft.date=1993&rft_id=info%3Adoi%2F10.1145%2F154766.155580&rft.isbn=0-89791-570-4&rft.aulast=Ritchie&rft.aufirst=Dennis+M.&rft_id=http%3A%2F%2Fwww.bell-labs.com%2Fusr%2Fdmr%2Fwww%2Fchist.html&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKernighanRitchie1988" class="citation book cs1"><a href="/wiki/Brian_Kernighan" title="Brian Kernighan">Kernighan, Brian W.</a>; <a href="/wiki/Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (1988). <i>The C Programming Language</i> (2nd ed.). <a href="/wiki/Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/0-13-110362-8" title="Special:BookSources/0-13-110362-8"><bdi>0-13-110362-8</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+C+Programming+Language&rft.edition=2nd&rft.pub=Prentice+Hall&rft.date=1988&rft.isbn=0-13-110362-8&rft.aulast=Kernighan&rft.aufirst=Brian+W.&rft.au=Ritchie%2C+Dennis+M.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li></ul> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(16)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=43" title="Edit section: Further reading" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-16 collapsible-block" id="mf-section-16"> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPlauger1992" class="citation book cs1"><a href="/wiki/P._J._Plauger" title="P. J. Plauger">Plauger, P.J.</a> (1992). <i>The Standard C Library</i> (1 ed.). Prentice Hall. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0131315099" title="Special:BookSources/978-0131315099"><bdi>978-0131315099</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+Standard+C+Library&rft.edition=1&rft.pub=Prentice+Hall&rft.date=1992&rft.isbn=978-0131315099&rft.aulast=Plauger&rft.aufirst=P.J.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <small><a rel="nofollow" class="external text" href="https://github.com/wuzhouhui/c_standard_lib"><i>(source)</i></a></small></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFBanahanBradyDoran1991" class="citation book cs1">Banahan, M.; Brady, D.; Doran, M. (1991). <i>The C Book: Featuring the ANSI C Standard</i> (2 ed.). Addison-Wesley. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0201544336" title="Special:BookSources/978-0201544336"><bdi>978-0201544336</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+C+Book%3A+Featuring+the+ANSI+C+Standard&rft.edition=2&rft.pub=Addison-Wesley&rft.date=1991&rft.isbn=978-0201544336&rft.aulast=Banahan&rft.aufirst=M.&rft.au=Brady%2C+D.&rft.au=Doran%2C+M.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <small><a rel="nofollow" class="external text" href="https://github.com/wardvanwanrooij/thecbook"><i>(free)</i></a></small></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFeuer1985" class="citation book cs1">Feuer, Alan R. (1985). <i>The C Puzzle Book</i> (1 ed.). Prentice Hall. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/0131099345" title="Special:BookSources/0131099345"><bdi>0131099345</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+C+Puzzle+Book&rft.edition=1&rft.pub=Prentice+Hall&rft.date=1985&rft.isbn=0131099345&rft.aulast=Feuer&rft.aufirst=Alan+R.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHarbisonSteele2002" class="citation book cs1">Harbison, Samuel; Steele, Guy Jr. (2002). <i>C: A Reference Manual</i> (5 ed.). Pearson. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0130895929" title="Special:BookSources/978-0130895929"><bdi>978-0130895929</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C%3A+A+Reference+Manual&rft.edition=5&rft.pub=Pearson&rft.date=2002&rft.isbn=978-0130895929&rft.aulast=Harbison&rft.aufirst=Samuel&rft.au=Steele%2C+Guy+Jr.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <small><a rel="nofollow" class="external text" href="https://archive.org/details/creferencemanual00harb"><i>(archive)</i></a></small></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFKing2008" class="citation book cs1">King, K.N. (2008). <i>C Programming: A Modern Approach</i> (2 ed.). W. W. Norton. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0393979503" title="Special:BookSources/978-0393979503"><bdi>978-0393979503</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C+Programming%3A+A+Modern+Approach&rft.edition=2&rft.pub=W.+W.+Norton&rft.date=2008&rft.isbn=978-0393979503&rft.aulast=King&rft.aufirst=K.N.&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <small><a rel="nofollow" class="external text" href="https://archive.org/details/cprogrammingmode0000king"><i>(archive)</i></a></small></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGriffithsGriffiths2012" class="citation book cs1">Griffiths, David; Griffiths, Dawn (2012). <i>Head First C</i> (1 ed.). O'Reilly. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1449399917" title="Special:BookSources/978-1449399917"><bdi>978-1449399917</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Head+First+C&rft.edition=1&rft.pub=O%27Reilly&rft.date=2012&rft.isbn=978-1449399917&rft.aulast=Griffiths&rft.aufirst=David&rft.au=Griffiths%2C+Dawn&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFPerryMiller2013" class="citation book cs1">Perry, Greg; Miller, Dean (2013). <i>C Programming: Absolute Beginner's Guide</i> (3 ed.). Que. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0789751980" title="Special:BookSources/978-0789751980"><bdi>978-0789751980</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C+Programming%3A+Absolute+Beginner%27s+Guide&rft.edition=3&rft.pub=Que&rft.date=2013&rft.isbn=978-0789751980&rft.aulast=Perry&rft.aufirst=Greg&rft.au=Miller%2C+Dean&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFDeitelDeitel2015" class="citation book cs1">Deitel, Paul; Deitel, Harvey (2015). <i>C: How to Program</i> (8 ed.). Pearson. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-0133976892" title="Special:BookSources/978-0133976892"><bdi>978-0133976892</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=C%3A+How+to+Program&rft.edition=8&rft.pub=Pearson&rft.date=2015&rft.isbn=978-0133976892&rft.aulast=Deitel&rft.aufirst=Paul&rft.au=Deitel%2C+Harvey&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGustedt2019" class="citation book cs1">Gustedt, Jens (2019). <i>Modern C</i> (2 ed.). Manning. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <a href="/wiki/Special:BookSources/978-1617295812" title="Special:BookSources/978-1617295812"><bdi>978-1617295812</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Modern+C&rft.edition=2&rft.pub=Manning&rft.date=2019&rft.isbn=978-1617295812&rft.aulast=Gustedt&rft.aufirst=Jens&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <small><i><a rel="nofollow" class="external text" href="https://gustedt.gitlabpages.inria.fr/modern-c/">(free)</a></i></small></li></ul> </section><div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(17)"><span class="indicator mf-icon mf-icon-expand mf-icon--small"></span><h2 id="External_links">External links</h2><span class="mw-editsection"> <a role="button" href="/w/index.php?title=C_(programming_language)&action=edit&section=44" title="Edit section: External links" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>edit</span> </a> </span> </div><section class="mf-section-17 collapsible-block" id="mf-section-17"> <style data-mw-deduplicate="TemplateStyles:r1235681985">.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}</style><style data-mw-deduplicate="TemplateStyles:r1250146164">.mw-parser-output .sister-box .side-box-abovebelow{padding:0.75em 0;text-align:center}.mw-parser-output .sister-box .side-box-abovebelow>b{display:block}.mw-parser-output .sister-box .side-box-text>ul{border-top:1px solid #aaa;padding:0.75em 0;width:217px;margin:0 auto}.mw-parser-output .sister-box .side-box-text>ul>li{min-height:31px}.mw-parser-output .sister-logo{display:inline-block;width:31px;line-height:31px;vertical-align:middle;text-align:center}.mw-parser-output .sister-link{display:inline-block;margin-left:4px;width:182px;vertical-align:middle}@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-v2.svg"]{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-v2.svg"]{background-color:white}}</style><div role="navigation" aria-labelledby="sister-projects" class="side-box metadata side-box-right sister-box sistersitebox plainlinks"><style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style> <div class="side-box-abovebelow"> <b>C (programming language)</b> at Wikipedia's <a href="/wiki/Wikipedia:Wikimedia_sister_projects" title="Wikipedia:Wikimedia sister projects"><span id="sister-projects">sister projects</span></a></div> <div class="side-box-flex"> <div class="side-box-text plainlist"><ul><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/20px-Commons-logo.svg.png" decoding="async" width="20" height="27" class="mw-file-element" data-file-width="1024" data-file-height="1376"></noscript><span class="lazy-image-placeholder" style="width: 20px;height: 27px;" data-src="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/20px-Commons-logo.svg.png" data-alt="" data-width="20" data-height="27" data-srcset="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/40px-Commons-logo.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="sister-link"><a href="https://commons.wikimedia.org/wiki/Category:C_(programming_language)" class="extiw" title="c:Category:C (programming language)">Media</a> from Commons</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/27px-Wikinews-logo.svg.png" decoding="async" width="27" height="15" class="mw-file-element" data-file-width="759" data-file-height="415"></noscript><span class="lazy-image-placeholder" style="width: 27px;height: 15px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/27px-Wikinews-logo.svg.png" data-alt="" data-width="27" data-height="15" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/41px-Wikinews-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/54px-Wikinews-logo.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="sister-link"><a href="https://en.wikinews.org/wiki/Special:Search/C_(programming_language)" class="extiw" title="n:Special:Search/C (programming language)">News</a> from Wikinews</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/23px-Wikiquote-logo.svg.png" decoding="async" width="23" height="27" class="mw-file-element" data-file-width="300" data-file-height="355"></noscript><span class="lazy-image-placeholder" style="width: 23px;height: 27px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/23px-Wikiquote-logo.svg.png" data-alt="" data-width="23" data-height="27" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/35px-Wikiquote-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/46px-Wikiquote-logo.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="sister-link"><a href="https://en.wikiquote.org/wiki/C_(programming_language)" class="extiw" title="q:C (programming language)">Quotations</a> from Wikiquote</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/27px-Wikibooks-logo.svg.png" decoding="async" width="27" height="27" class="mw-file-element" data-file-width="300" data-file-height="300"></noscript><span class="lazy-image-placeholder" style="width: 27px;height: 27px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/27px-Wikibooks-logo.svg.png" data-alt="" data-width="27" data-height="27" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/41px-Wikibooks-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/54px-Wikibooks-logo.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="sister-link"><a href="https://en.wikibooks.org/wiki/C_Programming" class="extiw" title="b:C Programming">Textbooks</a> from Wikibooks</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><noscript><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/27px-Wikiversity_logo_2017.svg.png" decoding="async" width="27" height="22" class="mw-file-element" data-file-width="626" data-file-height="512"></noscript><span class="lazy-image-placeholder" style="width: 27px;height: 22px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/27px-Wikiversity_logo_2017.svg.png" data-alt="" data-width="27" data-height="22" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/41px-Wikiversity_logo_2017.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/54px-Wikiversity_logo_2017.svg.png 2x" data-class="mw-file-element"> </span></span></span></span><span class="sister-link"><a href="https://en.wikiversity.org/wiki/C" class="extiw" title="v:C">Resources</a> from Wikiversity</span></li></ul></div></div> </div> <ul><li><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/">ISO C Working Group official website</a> <ul><li><a rel="nofollow" class="external text" href="https://www.open-std.org/JTC1/SC22/WG14/www/standards">ISO/IEC 9899</a>, publicly available official C documents, including the C99 Rationale</li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf">"C99 with Technical corrigenda TC1, TC2, and TC3 included"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20071025205438/http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on October 25, 2007.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=C99+with+Technical+corrigenda+TC1%2C+TC2%2C+and+TC3+included&rft_id=https%3A%2F%2Fwww.open-std.org%2FJTC1%2FSC22%2FWG14%2Fwww%2Fdocs%2Fn1256.pdf&rfr_id=info%3Asid%2Fen.wikipedia.org%3AC+%28programming+language%29" class="Z3988"></span> <span style="font-size:85%;">(3.61 MB)</span></li></ul></li> <li><a rel="nofollow" class="external text" href="https://c-faq.com/">comp.lang.c Frequently Asked Questions</a></li> <li><a rel="nofollow" class="external text" href="https://csapp.cs.cmu.edu/3e/docs/chistory.html">A History of C</a>, by Dennis Ritchie</li> <li><a rel="nofollow" class="external text" href="https://en.cppreference.com/w/c">C Library Reference and Examples</a></li></ul> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"><style data-mw-deduplicate="TemplateStyles:r1038841319">.mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}</style></div></section></div> <!-- MobileFormatter took 0.037 seconds --><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&useformat=mobile" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=C_(programming_language)&oldid=1260686914">https://en.wikipedia.org/w/index.php?title=C_(programming_language)&oldid=1260686914</a>"</div></div> </div> <div class="post-content" id="page-secondary-actions"> </div> </main> <footer class="mw-footer minerva-footer" role="contentinfo"> <a class="last-modified-bar" href="/w/index.php?title=C_(programming_language)&action=history"> <div class="post-content last-modified-bar__content"> <span class="minerva-icon minerva-icon-size-medium minerva-icon--modified-history"></span> <span class="last-modified-bar__text modified-enhancement" data-user-name="Ntsrz" data-user-gender="unknown" data-timestamp="1733106471"> <span>Last edited on 2 December 2024, at 02:27</span> </span> <span class="minerva-icon minerva-icon-size-small minerva-icon--expand"></span> </div> </a> <div class="post-content footer-content"> <div id='mw-data-after-content'> <div class="read-more-container"></div> </div> <div id="p-lang"> <h4>Languages</h4> <section> <ul id="p-variants" class="minerva-languages"></ul> <ul class="minerva-languages"><li class="interlanguage-link interwiki-af mw-list-item"><a href="https://af.wikipedia.org/wiki/C_(programmeertaal)" title="C (programmeertaal) – Afrikaans" lang="af" hreflang="af" data-title="C (programmeertaal)" data-language-autonym="Afrikaans" data-language-local-name="Afrikaans" class="interlanguage-link-target"><span>Afrikaans</span></a></li><li class="interlanguage-link interwiki-als mw-list-item"><a href="https://als.wikipedia.org/wiki/C_(Programmiersprache)" title="C (Programmiersprache) – Alemannic" lang="gsw" hreflang="gsw" data-title="C (Programmiersprache)" data-language-autonym="Alemannisch" data-language-local-name="Alemannic" class="interlanguage-link-target"><span>Alemannisch</span></a></li><li class="interlanguage-link interwiki-am mw-list-item"><a href="https://am.wikipedia.org/wiki/%E1%88%B2_(%E1%8B%A8%E1%8A%AE%E1%88%9D%E1%8D%92%E1%8B%A9%E1%89%B0%E1%88%AD_%E1%8D%8D%E1%88%AD%E1%8C%88%E1%88%9B_%E1%89%8B%E1%8A%95%E1%89%8B)" title="ሲ (የኮምፒዩተር ፍርገማ ቋንቋ) – Amharic" lang="am" hreflang="am" data-title="ሲ (የኮምፒዩተር ፍርገማ ቋንቋ)" data-language-autonym="አማርኛ" data-language-local-name="Amharic" class="interlanguage-link-target"><span>አማርኛ</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%B3%D9%8A_(%D9%84%D8%BA%D8%A9_%D8%A8%D8%B1%D9%85%D8%AC%D8%A9)" title="سي (لغة برمجة) – Arabic" lang="ar" hreflang="ar" data-title="سي (لغة برمجة)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-an mw-list-item"><a href="https://an.wikipedia.org/wiki/Luengache_de_programaci%C3%B3n_C" title="Luengache de programación C – Aragonese" lang="an" hreflang="an" data-title="Luengache de programación C" data-language-autonym="Aragonés" data-language-local-name="Aragonese" class="interlanguage-link-target"><span>Aragonés</span></a></li><li class="interlanguage-link interwiki-as mw-list-item"><a href="https://as.wikipedia.org/wiki/%E0%A6%9A%E0%A6%BF_(%E0%A6%AA%E0%A7%8D%E0%A7%B0%E0%A6%97%E0%A7%8D%E0%A7%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82_%E0%A6%B2%E0%A7%87%E0%A6%82%E0%A6%97%E0%A7%81%E0%A7%B1%E0%A7%87%E0%A6%9C)" title="চি (প্ৰগ্ৰামিং লেংগুৱেজ) – Assamese" lang="as" hreflang="as" data-title="চি (প্ৰগ্ৰামিং লেংগুৱেজ)" data-language-autonym="অসমীয়া" data-language-local-name="Assamese" class="interlanguage-link-target"><span>অসমীয়া</span></a></li><li class="interlanguage-link interwiki-ast mw-list-item"><a href="https://ast.wikipedia.org/wiki/Llinguaxe_de_programaci%C3%B3n_C" title="Llinguaxe de programación C – Asturian" lang="ast" hreflang="ast" data-title="Llinguaxe de programación C" data-language-autonym="Asturianu" data-language-local-name="Asturian" class="interlanguage-link-target"><span>Asturianu</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/C_(proqramla%C5%9Fd%C4%B1rma_dili)" title="C (proqramlaşdırma dili) – Azerbaijani" lang="az" hreflang="az" data-title="C (proqramlaşdırma dili)" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D8%B3%DB%8C_(%DB%8C%D8%A7%D8%B2%DB%8C%D9%84%DB%8C%D9%85%D9%84%D8%A7%D9%85%D8%A7_%D8%AF%DB%8C%D9%84%DB%8C)" title="سی (یازیلیملاما دیلی) – South Azerbaijani" lang="azb" hreflang="azb" data-title="سی (یازیلیملاما دیلی)" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%B8%E0%A6%BF_(%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82_%E0%A6%AD%E0%A6%BE%E0%A6%B7%E0%A6%BE)" title="সি (প্রোগ্রামিং ভাষা) – Bangla" lang="bn" hreflang="bn" data-title="সি (প্রোগ্রামিং ভাষা)" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/C_(th%C3%AAng-sek_g%C3%AD-gi%C3%A2n)" title="C (thêng-sek gí-giân) – Minnan" lang="nan" hreflang="nan" data-title="C (thêng-sek gí-giân)" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/C_(%D0%BC%D0%BE%D0%B2%D0%B0_%D0%BF%D1%80%D0%B0%D0%B3%D1%80%D0%B0%D0%BC%D0%B0%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F)" title="C (мова праграмавання) – Belarusian" lang="be" hreflang="be" data-title="C (мова праграмавання)" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-be-x-old mw-list-item"><a href="https://be-tarask.wikipedia.org/wiki/C_(%D0%BC%D0%BE%D0%B2%D0%B0_%D0%BF%D1%80%D0%B0%D0%B3%D1%80%D0%B0%D0%BC%D0%B0%D0%B2%D0%B0%D0%BD%D1%8C%D0%BD%D1%8F)" title="C (мова праграмаваньня) – Belarusian (Taraškievica orthography)" lang="be-tarask" hreflang="be-tarask" data-title="C (мова праграмаваньня)" data-language-autonym="Беларуская (тарашкевіца)" data-language-local-name="Belarusian (Taraškievica orthography)" class="interlanguage-link-target"><span>Беларуская (тарашкевіца)</span></a></li><li class="interlanguage-link interwiki-bh mw-list-item"><a href="https://bh.wikipedia.org/wiki/%E0%A4%B8%E0%A5%80_(%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A5%8B%E0%A4%97%E0%A5%8D%E0%A4%B0%E0%A4%BE%E0%A4%AE%E0%A4%BF%E0%A4%82%E0%A4%97_%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A4%BE)" title="सी (प्रोग्रामिंग भाषा) – Bhojpuri" lang="bh" hreflang="bh" data-title="सी (प्रोग्रामिंग भाषा)" data-language-autonym="भोजपुरी" data-language-local-name="Bhojpuri" class="interlanguage-link-target"><span>भोजपुरी</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/C_(%D0%B5%D0%B7%D0%B8%D0%BA_%D0%B7%D0%B0_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%B8%D1%80%D0%B0%D0%BD%D0%B5)" title="C (език за програмиране) – Bulgarian" lang="bg" hreflang="bg" data-title="C (език за програмиране)" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/C_(programski_jezik)" title="C (programski jezik) – Bosnian" lang="bs" hreflang="bs" data-title="C (programski jezik)" data-language-autonym="Bosanski" data-language-local-name="Bosnian" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-br mw-list-item"><a href="https://br.wikipedia.org/wiki/C_(lavar_programmi%C3%B1)" title="C (lavar programmiñ) – Breton" lang="br" hreflang="br" data-title="C (lavar programmiñ)" data-language-autonym="Brezhoneg" data-language-local-name="Breton" class="interlanguage-link-target"><span>Brezhoneg</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Llenguatge_C" title="Llenguatge C – Catalan" lang="ca" hreflang="ca" data-title="Llenguatge C" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cv mw-list-item"><a href="https://cv.wikipedia.org/wiki/%D0%A1%D0%B8_(%D0%BA%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0%B5%D1%80_%D1%87%C4%95%D0%BB%D1%85%D0%B8)" title="Си (компьютер чĕлхи) – Chuvash" lang="cv" hreflang="cv" data-title="Си (компьютер чĕлхи)" data-language-autonym="Чӑвашла" data-language-local-name="Chuvash" class="interlanguage-link-target"><span>Чӑвашла</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/C_(programovac%C3%AD_jazyk)" title="C (programovací jazyk) – Czech" lang="cs" hreflang="cs" data-title="C (programovací jazyk)" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-co mw-list-item"><a href="https://co.wikipedia.org/wiki/C_(linguagiu_di_prugrammazione)" title="C (linguagiu di prugrammazione) – Corsican" lang="co" hreflang="co" data-title="C (linguagiu di prugrammazione)" data-language-autonym="Corsu" data-language-local-name="Corsican" class="interlanguage-link-target"><span>Corsu</span></a></li><li class="interlanguage-link interwiki-cy mw-list-item"><a href="https://cy.wikipedia.org/wiki/C_(iaith_raglennu)" title="C (iaith raglennu) – Welsh" lang="cy" hreflang="cy" data-title="C (iaith raglennu)" data-language-autonym="Cymraeg" data-language-local-name="Welsh" class="interlanguage-link-target"><span>Cymraeg</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/C_(programmeringssprog)" title="C (programmeringssprog) – Danish" lang="da" hreflang="da" data-title="C (programmeringssprog)" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-ary mw-list-item"><a href="https://ary.wikipedia.org/wiki/%D8%B3%D9%8A_(%D9%84%D9%88%D9%86%DA%AD%D8%A7%D8%AC)" title="سي (لونڭاج) – Moroccan Arabic" lang="ary" hreflang="ary" data-title="سي (لونڭاج)" data-language-autonym="الدارجة" data-language-local-name="Moroccan Arabic" class="interlanguage-link-target"><span>الدارجة</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/C_(Programmiersprache)" title="C (Programmiersprache) – German" lang="de" hreflang="de" data-title="C (Programmiersprache)" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/C_(programmeerimiskeel)" title="C (programmeerimiskeel) – Estonian" lang="et" hreflang="et" data-title="C (programmeerimiskeel)" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/C_(%CE%B3%CE%BB%CF%8E%CF%83%CF%83%CE%B1_%CF%80%CF%81%CE%BF%CE%B3%CF%81%CE%B1%CE%BC%CE%BC%CE%B1%CF%84%CE%B9%CF%83%CE%BC%CE%BF%CF%8D)" title="C (γλώσσα προγραμματισμού) – Greek" lang="el" hreflang="el" data-title="C (γλώσσα προγραμματισμού)" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/C_(lenguaje_de_programaci%C3%B3n)" title="C (lenguaje de programación) – Spanish" lang="es" hreflang="es" data-title="C (lenguaje de programación)" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/C_(programlingvo)" title="C (programlingvo) – Esperanto" lang="eo" hreflang="eo" data-title="C (programlingvo)" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/C_(programazio_lengoaia)" title="C (programazio lengoaia) – Basque" lang="eu" hreflang="eu" data-title="C (programazio lengoaia)" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%B3%DB%8C_(%D8%B2%D8%A8%D8%A7%D9%86_%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87%E2%80%8C%D9%86%D9%88%DB%8C%D8%B3%DB%8C)" title="سی (زبان برنامهنویسی) – Persian" lang="fa" hreflang="fa" data-title="سی (زبان برنامهنویسی)" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/C_(langage)" title="C (langage) – French" lang="fr" hreflang="fr" data-title="C (langage)" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-ga mw-list-item"><a href="https://ga.wikipedia.org/wiki/C_(Teanga_r%C3%ADomhchl%C3%A1r%C3%BAch%C3%A1in)" title="C (Teanga ríomhchlárúcháin) – Irish" lang="ga" hreflang="ga" data-title="C (Teanga ríomhchlárúcháin)" data-language-autonym="Gaeilge" data-language-local-name="Irish" class="interlanguage-link-target"><span>Gaeilge</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/C_(linguaxe_de_programaci%C3%B3n)" title="C (linguaxe de programación) – Galician" lang="gl" hreflang="gl" data-title="C (linguaxe de programación)" data-language-autonym="Galego" data-language-local-name="Galician" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-gu mw-list-item"><a href="https://gu.wikipedia.org/wiki/C_(%E0%AA%AA%E0%AB%8D%E0%AA%B0%E0%AB%8B%E0%AA%97%E0%AB%8D%E0%AA%B0%E0%AA%BE%E0%AA%AE%E0%AA%BF%E0%AA%82%E0%AA%97_%E0%AA%AD%E0%AA%BE%E0%AA%B7%E0%AA%BE)" title="C (પ્રોગ્રામિંગ ભાષા) – Gujarati" lang="gu" hreflang="gu" data-title="C (પ્રોગ્રામિંગ ભાષા)" data-language-autonym="ગુજરાતી" data-language-local-name="Gujarati" class="interlanguage-link-target"><span>ગુજરાતી</span></a></li><li class="interlanguage-link interwiki-hak mw-list-item"><a href="https://hak.wikipedia.org/wiki/C_ng%C3%AE-ngi%C3%A8n" title="C ngî-ngièn – Hakka Chinese" lang="hak" hreflang="hak" data-title="C ngî-ngièn" data-language-autonym="客家語 / Hak-kâ-ngî" data-language-local-name="Hakka Chinese" class="interlanguage-link-target"><span>客家語 / Hak-kâ-ngî</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/C_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)" title="C (프로그래밍 언어) – Korean" lang="ko" hreflang="ko" data-title="C (프로그래밍 언어)" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/C_programming_language" title="C programming language – Hausa" lang="ha" hreflang="ha" data-title="C programming language" data-language-autonym="Hausa" data-language-local-name="Hausa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%8D%D5%AB_(%D5%AE%D6%80%D5%A1%D5%A3%D6%80%D5%A1%D5%BE%D5%B8%D6%80%D5%B4%D5%A1%D5%B6_%D5%AC%D5%A5%D5%A6%D5%B8%D6%82)" title="Սի (ծրագրավորման լեզու) – Armenian" lang="hy" hreflang="hy" data-title="Սի (ծրագրավորման լեզու)" data-language-autonym="Հայերեն" data-language-local-name="Armenian" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%B8%E0%A5%80_(%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A5%8B%E0%A4%97%E0%A5%8D%E0%A4%B0%E0%A4%BE%E0%A4%AE%E0%A4%BF%E0%A4%82%E0%A4%97_%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A4%BE)" title="सी (प्रोग्रामिंग भाषा) – Hindi" lang="hi" hreflang="hi" data-title="सी (प्रोग्रामिंग भाषा)" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/C_(programski_jezik)" title="C (programski jezik) – Croatian" lang="hr" hreflang="hr" data-title="C (programski jezik)" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-io mw-list-item"><a href="https://io.wikipedia.org/wiki/C_(programifo-linguo)" title="C (programifo-linguo) – Ido" lang="io" hreflang="io" data-title="C (programifo-linguo)" data-language-autonym="Ido" data-language-local-name="Ido" class="interlanguage-link-target"><span>Ido</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/C_(bahasa_pemrograman)" title="C (bahasa pemrograman) – Indonesian" lang="id" hreflang="id" data-title="C (bahasa pemrograman)" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ia mw-list-item"><a href="https://ia.wikipedia.org/wiki/C_(linguage_de_programmation)" title="C (linguage de programmation) – Interlingua" lang="ia" hreflang="ia" data-title="C (linguage de programmation)" data-language-autonym="Interlingua" data-language-local-name="Interlingua" class="interlanguage-link-target"><span>Interlingua</span></a></li><li class="interlanguage-link interwiki-xh mw-list-item"><a href="https://xh.wikipedia.org/wiki/U-C_(woku-programa_ulwimi)" title="U-C (woku-programa ulwimi) – Xhosa" lang="xh" hreflang="xh" data-title="U-C (woku-programa ulwimi)" data-language-autonym="IsiXhosa" data-language-local-name="Xhosa" class="interlanguage-link-target"><span>IsiXhosa</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/C_(forritunarm%C3%A1l)" title="C (forritunarmál) – Icelandic" lang="is" hreflang="is" data-title="C (forritunarmál)" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/C_(linguaggio_di_programmazione)" title="C (linguaggio di programmazione) – Italian" lang="it" hreflang="it" data-title="C (linguaggio di programmazione)" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/C_(%D7%A9%D7%A4%D7%AA_%D7%AA%D7%9B%D7%A0%D7%95%D7%AA)" title="C (שפת תכנות) – Hebrew" lang="he" hreflang="he" data-title="C (שפת תכנות)" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/C_(basa_pamrograman)" title="C (basa pamrograman) – Javanese" lang="jv" hreflang="jv" data-title="C (basa pamrograman)" data-language-autonym="Jawa" data-language-local-name="Javanese" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-kn mw-list-item"><a href="https://kn.wikipedia.org/wiki/%E0%B2%B8%E0%B2%BF_(%E0%B2%95%E0%B3%8D%E0%B2%B0%E0%B2%AE%E0%B2%B5%E0%B2%BF%E0%B2%A7%E0%B2%BF_%E0%B2%AD%E0%B2%BE%E0%B2%B7%E0%B3%86)" title="ಸಿ (ಕ್ರಮವಿಧಿ ಭಾಷೆ) – Kannada" lang="kn" hreflang="kn" data-title="ಸಿ (ಕ್ರಮವಿಧಿ ಭಾಷೆ)" data-language-autonym="ಕನ್ನಡ" data-language-local-name="Kannada" class="interlanguage-link-target"><span>ಕನ್ನಡ</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/C_(%E1%83%9E%E1%83%A0%E1%83%9D%E1%83%92%E1%83%A0%E1%83%90%E1%83%9B%E1%83%98%E1%83%A0%E1%83%94%E1%83%91%E1%83%98%E1%83%A1_%E1%83%94%E1%83%9C%E1%83%90)" title="C (პროგრამირების ენა) – Georgian" lang="ka" hreflang="ka" data-title="C (პროგრამირების ენა)" data-language-autonym="ქართული" data-language-local-name="Georgian" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kk mw-list-item"><a href="https://kk.wikipedia.org/wiki/C_(%D0%B1%D0%B0%D2%93%D0%B4%D0%B0%D1%80%D0%BB%D0%B0%D0%BC%D0%B0%D0%BB%D0%B0%D1%83_%D1%82%D1%96%D0%BB%D1%96)" title="C (бағдарламалау тілі) – Kazakh" lang="kk" hreflang="kk" data-title="C (бағдарламалау тілі)" data-language-autonym="Қазақша" data-language-local-name="Kazakh" class="interlanguage-link-target"><span>Қазақша</span></a></li><li class="interlanguage-link interwiki-sw mw-list-item"><a href="https://sw.wikipedia.org/wiki/C_(lugha_ya_programu)" title="C (lugha ya programu) – Swahili" lang="sw" hreflang="sw" data-title="C (lugha ya programu)" data-language-autonym="Kiswahili" data-language-local-name="Swahili" class="interlanguage-link-target"><span>Kiswahili</span></a></li><li class="interlanguage-link interwiki-ku mw-list-item"><a href="https://ku.wikipedia.org/wiki/C_(ziman%C3%AA_bernamesaziy%C3%AA)" title="C (zimanê bernamesaziyê) – Kurdish" lang="ku" hreflang="ku" data-title="C (zimanê bernamesaziyê)" data-language-autonym="Kurdî" data-language-local-name="Kurdish" class="interlanguage-link-target"><span>Kurdî</span></a></li><li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://ky.wikipedia.org/wiki/%D0%A1%D0%B8_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%D0%BB%D0%BE%D0%BE_%D1%82%D0%B8%D0%BB%D0%B8)" title="Си (программалоо тили) – Kyrgyz" lang="ky" hreflang="ky" data-title="Си (программалоо тили)" data-language-autonym="Кыргызча" data-language-local-name="Kyrgyz" class="interlanguage-link-target"><span>Кыргызча</span></a></li><li class="interlanguage-link interwiki-lo mw-list-item"><a href="https://lo.wikipedia.org/wiki/%E0%BA%9E%E0%BA%B2%E0%BA%AA%E0%BA%B2%E0%BB%80%E0%BA%8A" title="ພາສາເຊ – Lao" lang="lo" hreflang="lo" data-title="ພາສາເຊ" data-language-autonym="ລາວ" data-language-local-name="Lao" class="interlanguage-link-target"><span>ລາວ</span></a></li><li class="interlanguage-link interwiki-la badge-Q17437796 badge-featuredarticle mw-list-item" title="featured article badge"><a href="https://la.wikipedia.org/wiki/C_(lingua_programmandi)" title="C (lingua programmandi) – Latin" lang="la" hreflang="la" data-title="C (lingua programmandi)" data-language-autonym="Latina" data-language-local-name="Latin" class="interlanguage-link-target"><span>Latina</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/C_(programm%C4%93%C5%A1anas_valoda)" title="C (programmēšanas valoda) – Latvian" lang="lv" hreflang="lv" data-title="C (programmēšanas valoda)" data-language-autonym="Latviešu" data-language-local-name="Latvian" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/C_(kalba)" title="C (kalba) – Lithuanian" lang="lt" hreflang="lt" data-title="C (kalba)" data-language-autonym="Lietuvių" data-language-local-name="Lithuanian" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-lmo mw-list-item"><a href="https://lmo.wikipedia.org/wiki/C_(lenguagg)" title="C (lenguagg) – Lombard" lang="lmo" hreflang="lmo" data-title="C (lenguagg)" data-language-autonym="Lombard" data-language-local-name="Lombard" class="interlanguage-link-target"><span>Lombard</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/C_(programoz%C3%A1si_nyelv)" title="C (programozási nyelv) – Hungarian" lang="hu" hreflang="hu" data-title="C (programozási nyelv)" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-mai mw-list-item"><a href="https://mai.wikipedia.org/wiki/%E0%A4%B8%E0%A5%80" title="सी – Maithili" lang="mai" hreflang="mai" data-title="सी" data-language-autonym="मैथिली" data-language-local-name="Maithili" class="interlanguage-link-target"><span>मैथिली</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/C_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D1%81%D0%BA%D0%B8_%D1%98%D0%B0%D0%B7%D0%B8%D0%BA)" title="C (програмски јазик) – Macedonian" lang="mk" hreflang="mk" data-title="C (програмски јазик)" data-language-autonym="Македонски" data-language-local-name="Macedonian" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-mg mw-list-item"><a href="https://mg.wikipedia.org/wiki/Fiteny_C" title="Fiteny C – Malagasy" lang="mg" hreflang="mg" data-title="Fiteny C" data-language-autonym="Malagasy" data-language-local-name="Malagasy" class="interlanguage-link-target"><span>Malagasy</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%B8%E0%B4%BF_(%E0%B4%AA%E0%B5%8D%E0%B4%B0%E0%B5%8B%E0%B4%97%E0%B5%8D%E0%B4%B0%E0%B4%BE%E0%B4%AE%E0%B4%BF%E0%B4%99%E0%B5%8D_%E0%B4%AD%E0%B4%BE%E0%B4%B7)" title="സി (പ്രോഗ്രാമിങ് ഭാഷ) – Malayalam" lang="ml" hreflang="ml" data-title="സി (പ്രോഗ്രാമിങ് ഭാഷ)" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B8%E0%A5%80_(%E0%A4%86%E0%A4%9C%E0%A5%8D%E0%A4%9E%E0%A4%BE%E0%A4%B5%E0%A4%B2%E0%A5%80_%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A4%BE)" title="सी (आज्ञावली भाषा) – Marathi" lang="mr" hreflang="mr" data-title="सी (आज्ञावली भाषा)" data-language-autonym="मराठी" data-language-local-name="Marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/C_(bahasa_pengaturcaraan)" title="C (bahasa pengaturcaraan) – Malay" lang="ms" hreflang="ms" data-title="C (bahasa pengaturcaraan)" data-language-autonym="Bahasa Melayu" data-language-local-name="Malay" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-mni mw-list-item"><a href="https://mni.wikipedia.org/wiki/%EA%AF%81%EA%AF%A4_%EA%AF%84%EA%AF%AD%EA%AF%94%EA%AF%A3%EA%AF%92%EA%AF%AD%EA%AF%94%EA%AF%A5%EA%AF%9D%EA%AF%83%EA%AF%A4%EA%AF%A1_%EA%AF%82%EA%AF%A3%EA%AF%9F" title="ꯁꯤ ꯄ꯭ꯔꯣꯒ꯭ꯔꯥꯝꯃꯤꯡ ꯂꯣꯟ – Manipuri" lang="mni" hreflang="mni" data-title="ꯁꯤ ꯄ꯭ꯔꯣꯒ꯭ꯔꯥꯝꯃꯤꯡ ꯂꯣꯟ" data-language-autonym="ꯃꯤꯇꯩ ꯂꯣꯟ" data-language-local-name="Manipuri" class="interlanguage-link-target"><span>ꯃꯤꯇꯩ ꯂꯣꯟ</span></a></li><li class="interlanguage-link interwiki-cdo mw-list-item"><a href="https://cdo.wikipedia.org/wiki/C_ng%E1%B9%B3%CC%84-ngi%C3%B2ng" title="C ngṳ̄-ngiòng – Mindong" lang="cdo" hreflang="cdo" data-title="C ngṳ̄-ngiòng" data-language-autonym="閩東語 / Mìng-dĕ̤ng-ngṳ̄" data-language-local-name="Mindong" class="interlanguage-link-target"><span>閩東語 / Mìng-dĕ̤ng-ngṳ̄</span></a></li><li class="interlanguage-link interwiki-mn mw-list-item"><a href="https://mn.wikipedia.org/wiki/%D0%A1%D0%B8_%D1%85%D1%8D%D0%BB" title="Си хэл – Mongolian" lang="mn" hreflang="mn" data-title="Си хэл" data-language-autonym="Монгол" data-language-local-name="Mongolian" class="interlanguage-link-target"><span>Монгол</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/C_(%E1%80%95%E1%80%9B%E1%80%AD%E1%80%AF%E1%80%82%E1%80%9B%E1%80%99%E1%80%BA%E1%80%B8%E1%80%99%E1%80%84%E1%80%BA%E1%80%B8_%E1%80%98%E1%80%AC%E1%80%9E%E1%80%AC%E1%80%85%E1%80%80%E1%80%AC%E1%80%B8)" title="C (ပရိုဂရမ်းမင်း ဘာသာစကား) – Burmese" lang="my" hreflang="my" data-title="C (ပရိုဂရမ်းမင်း ဘာသာစကား)" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="Burmese" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/C_(programmeertaal)" title="C (programmeertaal) – Dutch" lang="nl" hreflang="nl" data-title="C (programmeertaal)" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ne mw-list-item"><a href="https://ne.wikipedia.org/wiki/%E0%A4%B8%E0%A4%BF" title="सि – Nepali" lang="ne" hreflang="ne" data-title="सि" data-language-autonym="नेपाली" data-language-local-name="Nepali" class="interlanguage-link-target"><span>नेपाली</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/C%E8%A8%80%E8%AA%9E" title="C言語 – Japanese" lang="ja" hreflang="ja" data-title="C言語" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/C_(programmeringsspr%C3%A5k)" title="C (programmeringsspråk) – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="C (programmeringsspråk)" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Programmeringsspr%C3%A5ket_C" title="Programmeringsspråket C – Norwegian Nynorsk" lang="nn" hreflang="nn" data-title="Programmeringsspråket C" data-language-autonym="Norsk nynorsk" data-language-local-name="Norwegian Nynorsk" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-oc mw-list-item"><a href="https://oc.wikipedia.org/wiki/C_(lengatge)" title="C (lengatge) – Occitan" lang="oc" hreflang="oc" data-title="C (lengatge)" data-language-autonym="Occitan" data-language-local-name="Occitan" class="interlanguage-link-target"><span>Occitan</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%B8%E0%AC%BF_(%E0%AC%AA%E0%AD%8D%E0%AC%B0%E0%AD%8B%E0%AC%97%E0%AD%8D%E0%AC%B0%E0%AC%BE%E0%AC%AE%E0%AC%BF%E0%AC%82_%E0%AC%AD%E0%AC%BE%E0%AC%B7%E0%AC%BE)" title="ସି (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା) – Odia" lang="or" hreflang="or" data-title="ସି (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା)" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-uz mw-list-item"><a href="https://uz.wikipedia.org/wiki/C_(dasturlash_tili)" title="C (dasturlash tili) – Uzbek" lang="uz" hreflang="uz" data-title="C (dasturlash tili)" data-language-autonym="Oʻzbekcha / ўзбекча" data-language-local-name="Uzbek" class="interlanguage-link-target"><span>Oʻzbekcha / ўзбекча</span></a></li><li class="interlanguage-link interwiki-pa mw-list-item"><a href="https://pa.wikipedia.org/wiki/%E0%A8%B8%E0%A9%80_(%E0%A8%AA%E0%A9%8D%E0%A8%B0%E0%A9%8B%E0%A8%97%E0%A8%B0%E0%A8%BE%E0%A8%AE%E0%A8%BF%E0%A9%B0%E0%A8%97_%E0%A8%AD%E0%A8%BE%E0%A8%B8%E0%A8%BC%E0%A8%BE)" title="ਸੀ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ) – Punjabi" lang="pa" hreflang="pa" data-title="ਸੀ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ)" data-language-autonym="ਪੰਜਾਬੀ" data-language-local-name="Punjabi" class="interlanguage-link-target"><span>ਪੰਜਾਬੀ</span></a></li><li class="interlanguage-link interwiki-pnb mw-list-item"><a href="https://pnb.wikipedia.org/wiki/%D8%B3%DB%8C_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="سی (پروگرامنگ زبان) – Western Punjabi" lang="pnb" hreflang="pnb" data-title="سی (پروگرامنگ زبان)" data-language-autonym="پنجابی" data-language-local-name="Western Punjabi" class="interlanguage-link-target"><span>پنجابی</span></a></li><li class="interlanguage-link interwiki-blk mw-list-item"><a href="https://blk.wikipedia.org/wiki/C_(%E1%80%95%E1%80%9B%E1%80%AD%E1%80%AF%E1%80%82%E1%80%9B%E1%80%99%E1%80%BA%E1%80%99%E1%80%AD%E1%80%89%E1%80%BA%E1%80%B8%E1%80%98%E1%80%AC%E1%82%8F%E1%80%9E%E1%80%AC%E1%82%8F%E1%80%84%E1%80%9D%E1%80%BA%E1%80%B8%E1%80%84%E1%80%BD%E1%80%AB)" title="C (ပရိုဂရမ်မိဉ်းဘာႏသာႏငဝ်းငွါ) – Pa'O" lang="blk" hreflang="blk" data-title="C (ပရိုဂရမ်မိဉ်းဘာႏသာႏငဝ်းငွါ)" data-language-autonym="ပအိုဝ်ႏဘာႏသာႏ" data-language-local-name="Pa'O" class="interlanguage-link-target"><span>ပအိုဝ်ႏဘာႏသာႏ</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/%E1%9E%97%E1%9E%B6%E1%9E%9F%E1%9E%B6%E1%9E%9F%E1%9F%8A%E1%9E%B8" title="ភាសាស៊ី – Khmer" lang="km" hreflang="km" data-title="ភាសាស៊ី" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="Khmer" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-pms mw-list-item"><a href="https://pms.wikipedia.org/wiki/C_(lengage_%C3%ABd_programassion)" title="C (lengage ëd programassion) – Piedmontese" lang="pms" hreflang="pms" data-title="C (lengage ëd programassion)" data-language-autonym="Piemontèis" data-language-local-name="Piedmontese" class="interlanguage-link-target"><span>Piemontèis</span></a></li><li class="interlanguage-link interwiki-pl badge-Q17437796 badge-featuredarticle mw-list-item" title="featured article badge"><a href="https://pl.wikipedia.org/wiki/C_(j%C4%99zyk_programowania)" title="C (język programowania) – Polish" lang="pl" hreflang="pl" data-title="C (język programowania)" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/C_(linguagem_de_programa%C3%A7%C3%A3o)" title="C (linguagem de programação) – Portuguese" lang="pt" hreflang="pt" data-title="C (linguagem de programação)" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-kaa mw-list-item"><a href="https://kaa.wikipedia.org/wiki/C" title="C – Kara-Kalpak" lang="kaa" hreflang="kaa" data-title="C" data-language-autonym="Qaraqalpaqsha" data-language-local-name="Kara-Kalpak" class="interlanguage-link-target"><span>Qaraqalpaqsha</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/C_(limbaj_de_programare)" title="C (limbaj de programare) – Romanian" lang="ro" hreflang="ro" data-title="C (limbaj de programare)" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-qu mw-list-item"><a href="https://qu.wikipedia.org/wiki/C_(wakichiy_simi)" title="C (wakichiy simi) – Quechua" lang="qu" hreflang="qu" data-title="C (wakichiy simi)" data-language-autonym="Runa Simi" data-language-local-name="Quechua" class="interlanguage-link-target"><span>Runa Simi</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%A1%D0%B8_(%D1%8F%D0%B7%D1%8B%D0%BA_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F)" title="Си (язык программирования) – Russian" lang="ru" hreflang="ru" data-title="Си (язык программирования)" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sah mw-list-item"><a href="https://sah.wikipedia.org/wiki/C_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%D0%BB%D0%B0%D0%B0h%D1%8B%D0%BD_%D1%82%D1%8B%D0%BB%D0%B0)" title="C (программалааhын тыла) – Yakut" lang="sah" hreflang="sah" data-title="C (программалааhын тыла)" data-language-autonym="Саха тыла" data-language-local-name="Yakut" class="interlanguage-link-target"><span>Саха тыла</span></a></li><li class="interlanguage-link interwiki-sat mw-list-item"><a href="https://sat.wikipedia.org/wiki/%E1%B1%A5%E1%B1%A4_(%E1%B1%AF%E1%B1%A8%E1%B1%9A%E1%B1%9C%E1%B1%BD%E1%B1%A8%E1%B1%9F%E1%B1%A2%E1%B1%A4%E1%B1%9D_%E1%B1%AF%E1%B1%9F%E1%B1%B9%E1%B1%A8%E1%B1%A5%E1%B1%A4)" title="ᱥᱤ (ᱯᱨᱚᱜᱽᱨᱟᱢᱤᱝ ᱯᱟᱹᱨᱥᱤ) – Santali" lang="sat" hreflang="sat" data-title="ᱥᱤ (ᱯᱨᱚᱜᱽᱨᱟᱢᱤᱝ ᱯᱟᱹᱨᱥᱤ)" data-language-autonym="ᱥᱟᱱᱛᱟᱲᱤ" data-language-local-name="Santali" class="interlanguage-link-target"><span>ᱥᱟᱱᱛᱟᱲᱤ</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/C_(programmin_leid)" title="C (programmin leid) – Scots" lang="sco" hreflang="sco" data-title="C (programmin leid)" data-language-autonym="Scots" data-language-local-name="Scots" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/C_(gjuh%C3%AB_programimi)" title="C (gjuhë programimi) – Albanian" lang="sq" hreflang="sq" data-title="C (gjuhë programimi)" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/C_(%E0%B6%9A%E0%B7%8A%E2%80%8D%E0%B6%BB%E0%B6%B8%E0%B6%BD%E0%B7%9A%E0%B6%9B%E0%B6%B1_%E0%B6%B7%E0%B7%8F%E0%B7%82%E0%B7%8F%E0%B7%80)" title="C (ක්රමලේඛන භාෂාව) – Sinhala" lang="si" hreflang="si" data-title="C (ක්රමලේඛන භාෂාව)" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/C_(programming_language)" title="C (programming language) – Simple English" lang="en-simple" hreflang="en-simple" data-title="C (programming language)" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/C_(programovac%C3%AD_jazyk)" title="C (programovací jazyk) – Slovak" lang="sk" hreflang="sk" data-title="C (programovací jazyk)" data-language-autonym="Slovenčina" data-language-local-name="Slovak" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Programski_jezik_C" title="Programski jezik C – Slovenian" lang="sl" hreflang="sl" data-title="Programski jezik C" data-language-autonym="Slovenščina" data-language-local-name="Slovenian" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/C_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D1%81%D0%BA%D0%B8_%D1%98%D0%B5%D0%B7%D0%B8%D0%BA)" title="C (програмски језик) – Serbian" lang="sr" hreflang="sr" data-title="C (програмски језик)" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/C_(programski_jezik)" title="C (programski jezik) – Serbo-Croatian" lang="sh" hreflang="sh" data-title="C (programski jezik)" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="Serbo-Croatian" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/C_(ohjelmointikieli)" title="C (ohjelmointikieli) – Finnish" lang="fi" hreflang="fi" data-title="C (ohjelmointikieli)" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/C_(programspr%C3%A5k)" title="C (programspråk) – Swedish" lang="sv" hreflang="sv" data-title="C (programspråk)" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tl mw-list-item"><a href="https://tl.wikipedia.org/wiki/C_(wikang_pamprograma)" title="C (wikang pamprograma) – Tagalog" lang="tl" hreflang="tl" data-title="C (wikang pamprograma)" data-language-autonym="Tagalog" data-language-local-name="Tagalog" class="interlanguage-link-target"><span>Tagalog</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%9A%E0%AE%BF_(%E0%AE%A8%E0%AE%BF%E0%AE%B0%E0%AE%B2%E0%AE%BE%E0%AE%95%E0%AF%8D%E0%AE%95_%E0%AE%AE%E0%AF%8A%E0%AE%B4%E0%AE%BF)" title="சி (நிரலாக்க மொழி) – Tamil" lang="ta" hreflang="ta" data-title="சி (நிரலாக்க மொழி)" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-kab mw-list-item"><a href="https://kab.wikipedia.org/wiki/C_(tutlayt)" title="C (tutlayt) – Kabyle" lang="kab" hreflang="kab" data-title="C (tutlayt)" data-language-autonym="Taqbaylit" data-language-local-name="Kabyle" class="interlanguage-link-target"><span>Taqbaylit</span></a></li><li class="interlanguage-link interwiki-tt mw-list-item"><a href="https://tt.wikipedia.org/wiki/%D0%A1%D0%B8_(%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0%D0%BB%D0%B0%D1%83_%D1%82%D0%B5%D0%BB%D0%B5)" title="Си (программалау теле) – Tatar" lang="tt" hreflang="tt" data-title="Си (программалау теле)" data-language-autonym="Татарча / tatarça" data-language-local-name="Tatar" class="interlanguage-link-target"><span>Татарча / tatarça</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%B8%E0%B0%BF" title="సి – Telugu" lang="te" hreflang="te" data-title="సి" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%8B%E0%B8%B5" title="ภาษาซี – Thai" lang="th" hreflang="th" data-title="ภาษาซี" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/C_(%D0%B7%D0%B0%D0%B1%D0%BE%D0%BD%D0%B8_%D0%B1%D0%B0%D1%80%D0%BD%D0%BE%D0%BC%D0%B0%D1%81%D0%BE%D0%B7%D3%A3)" title="C (забони барномасозӣ) – Tajik" lang="tg" hreflang="tg" data-title="C (забони барномасозӣ)" data-language-autonym="Тоҷикӣ" data-language-local-name="Tajik" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/C_(programlama_dili)" title="C (programlama dili) – Turkish" lang="tr" hreflang="tr" data-title="C (programlama dili)" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-bug mw-list-item"><a href="https://bug.wikipedia.org/wiki/C_(basa_maprogram)" title="C (basa maprogram) – Buginese" lang="bug" hreflang="bug" data-title="C (basa maprogram)" data-language-autonym="Basa Ugi" data-language-local-name="Buginese" class="interlanguage-link-target"><span>Basa Ugi</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/C_(%D0%BC%D0%BE%D0%B2%D0%B0_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F)" title="C (мова програмування) – Ukrainian" lang="uk" hreflang="uk" data-title="C (мова програмування)" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D8%B3%DB%8C_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="سی (پروگرامنگ زبان) – Urdu" lang="ur" hreflang="ur" data-title="سی (پروگرامنگ زبان)" data-language-autonym="اردو" data-language-local-name="Urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-vec mw-list-item"><a href="https://vec.wikipedia.org/wiki/Lenguajo_C" title="Lenguajo C – Venetian" lang="vec" hreflang="vec" data-title="Lenguajo C" data-language-autonym="Vèneto" data-language-local-name="Venetian" class="interlanguage-link-target"><span>Vèneto</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/C_(ng%C3%B4n_ng%E1%BB%AF_l%E1%BA%ADp_tr%C3%ACnh)" title="C (ngôn ngữ lập trình) – Vietnamese" lang="vi" hreflang="vi" data-title="C (ngôn ngữ lập trình)" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-zh-classical mw-list-item"><a href="https://zh-classical.wikipedia.org/wiki/%E4%B8%99%E8%AA%9E" title="丙語 – Literary Chinese" lang="lzh" hreflang="lzh" data-title="丙語" data-language-autonym="文言" data-language-local-name="Literary Chinese" class="interlanguage-link-target"><span>文言</span></a></li><li class="interlanguage-link interwiki-war mw-list-item"><a href="https://war.wikipedia.org/wiki/C_(linggwahe_hin_pagprograma)" title="C (linggwahe hin pagprograma) – Waray" lang="war" hreflang="war" data-title="C (linggwahe hin pagprograma)" data-language-autonym="Winaray" data-language-local-name="Waray" class="interlanguage-link-target"><span>Winaray</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/C%E8%AF%AD%E8%A8%80" title="C语言 – Wu" lang="wuu" hreflang="wuu" data-title="C语言" data-language-autonym="吴语" data-language-local-name="Wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-yi mw-list-item"><a href="https://yi.wikipedia.org/wiki/C_(%D7%A4%D7%A8%D7%90%D7%92%D7%A8%D7%90%D7%9D_%D7%A9%D7%A4%D7%A8%D7%90%D7%9A)" title="C (פראגראם שפראך) – Yiddish" lang="yi" hreflang="yi" data-title="C (פראגראם שפראך)" data-language-autonym="ייִדיש" data-language-local-name="Yiddish" class="interlanguage-link-target"><span>ייִדיש</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/C_(%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80)" title="C (程式語言) – Cantonese" lang="yue" hreflang="yue" data-title="C (程式語言)" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-bat-smg mw-list-item"><a href="https://bat-smg.wikipedia.org/wiki/C_(kalba)" title="C (kalba) – Samogitian" lang="sgs" hreflang="sgs" data-title="C (kalba)" data-language-autonym="Žemaitėška" data-language-local-name="Samogitian" class="interlanguage-link-target"><span>Žemaitėška</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/C%E8%AF%AD%E8%A8%80" title="C语言 – Chinese" lang="zh" hreflang="zh" data-title="C语言" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zgh mw-list-item"><a href="https://zgh.wikipedia.org/wiki/%E2%B5%99%E2%B5%89_(%E2%B5%9C%E2%B5%93%E2%B5%9C%E2%B5%8D%E2%B4%B0%E2%B5%A2%E2%B5%9C_%E2%B5%8F_%E2%B5%93%E2%B5%99%E2%B5%96%E2%B5%89%E2%B5%A1%E2%B5%99)" title="ⵙⵉ (ⵜⵓⵜⵍⴰⵢⵜ ⵏ ⵓⵙⵖⵉⵡⵙ) – Standard Moroccan Tamazight" lang="zgh" hreflang="zgh" data-title="ⵙⵉ (ⵜⵓⵜⵍⴰⵢⵜ ⵏ ⵓⵙⵖⵉⵡⵙ)" data-language-autonym="ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ" data-language-local-name="Standard Moroccan Tamazight" class="interlanguage-link-target"><span>ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ</span></a></li></ul> </section> </div> <div class="minerva-footer-logo"><img src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" alt="Wikipedia" width="120" height="18" style="width: 7.5em; height: 1.125em;"/> </div> <ul id="footer-info" class="footer-info hlist hlist-separated"> <li id="footer-info-lastmod"> This page was last edited on 2 December 2024, at 02:27<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Content is available under <a class="external" rel="nofollow" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">CC BY-SA 4.0</a> unless otherwise noted.</li> </ul> <ul id="footer-places" class="footer-places hlist hlist-separated"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-terms-use"><a href="https://foundation.m.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a></li> <li id="footer-places-desktop-toggle"><a id="mw-mf-display-toggle" href="//en.wikipedia.org/w/index.php?title=C_(programming_language)&mobileaction=toggle_view_desktop" data-event-name="switch_to_desktop">Desktop</a></li> </ul> </div> </footer> </div> </div> <div class="mw-notification-area" data-mw="interface"></div> <!-- v:8.3.1 --> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-645858d48f-sfnmh","wgBackendResponseTime":228,"wgPageParseReport":{"limitreport":{"cputime":"1.173","walltime":"1.398","ppvisitednodes":{"value":9225,"limit":1000000},"postexpandincludesize":{"value":293981,"limit":2097152},"templateargumentsize":{"value":13366,"limit":2097152},"expansiondepth":{"value":27,"limit":100},"expensivefunctioncount":{"value":42,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":304562,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 1142.687 1 -total"," 31.06% 354.895 2 Template:Reflist"," 14.09% 160.952 24 Template:Cite_book"," 12.05% 137.712 37 Template:Cite_web"," 11.57% 132.183 2 Template:Infobox"," 8.82% 100.791 1 Template:Infobox_programming_language"," 7.23% 82.613 13 Template:Navbox"," 6.54% 74.697 1 Template:Sister_project_links"," 6.16% 70.333 5 Template:Sfnp"," 5.18% 59.234 1 Template:Short_description"]},"scribunto":{"limitreport-timeusage":{"value":"0.683","limit":"10.000"},"limitreport-memusage":{"value":10948807,"limit":52428800},"limitreport-logs":"anchor_id_list = table#1 {\n [\"CITEREFAndrew_Binstock2011\"] = 1,\n [\"CITEREFBanahanBradyDoran1991\"] = 1,\n [\"CITEREFConrad2018\"] = 1,\n [\"CITEREFDaleWeems2014\"] = 1,\n [\"CITEREFDeitelDeitel2015\"] = 1,\n [\"CITEREFFeuer1985\"] = 1,\n [\"CITEREFFeuerGehani1982\"] = 1,\n [\"CITEREFGriffithsGriffiths2012\"] = 1,\n [\"CITEREFGustedt2019\"] = 1,\n [\"CITEREFHarbisonSteele2002\"] = 2,\n [\"CITEREFHastingsJoyce\"] = 1,\n [\"CITEREFJensen2020\"] = 1,\n [\"CITEREFJohnsonRitchie1978\"] = 1,\n [\"CITEREFKernighanRitchie1978\"] = 1,\n [\"CITEREFKernighanRitchie1988\"] = 1,\n [\"CITEREFKing2008\"] = 1,\n [\"CITEREFKlemens2013\"] = 1,\n [\"CITEREFMcIlroy1987\"] = 1,\n [\"CITEREFMcMillan2013\"] = 1,\n [\"CITEREFMetz\"] = 1,\n [\"CITEREFMunoz\"] = 2,\n [\"CITEREFO\u0026#039;Regan2015\"] = 1,\n [\"CITEREFPara2022\"] = 1,\n [\"CITEREFPerkins2013\"] = 1,\n [\"CITEREFPerryMiller2013\"] = 1,\n [\"CITEREFPlauger1992\"] = 1,\n [\"CITEREFPrinzCrawford2005\"] = 1,\n [\"CITEREFRauchwerger2004\"] = 1,\n [\"CITEREFRaymond1996\"] = 1,\n [\"CITEREFRitchie\"] = 2,\n [\"CITEREFRitchie1993\"] = 1,\n [\"CITEREFRoberts1989\"] = 1,\n [\"CITEREFSchultz2004\"] = 1,\n [\"CITEREFStroustrup1993\"] = 1,\n [\"CITEREFStroustrup2002\"] = 1,\n [\"CITEREFWard1983\"] = 1,\n [\"CITEREFcorob-msft2022\"] = 1,\n [\"CITEREFเอี่ยมสิริวงศ์2016\"] = 1,\n}\ntemplate_list = table#1 {\n [\"!\"] = 3,\n [\"!!\"] = 1,\n [\"=\"] = 11,\n [\"Authority control\"] = 1,\n [\"C programming language\"] = 1,\n [\"Cite book\"] = 24,\n [\"Cite conference\"] = 1,\n [\"Cite journal\"] = 4,\n [\"Cite magazine\"] = 2,\n [\"Cite news\"] = 1,\n [\"Cite report\"] = 1,\n [\"Cite tech report\"] = 1,\n [\"Cite web\"] = 37,\n [\"Clarify\"] = 1,\n [\"Code\"] = 5,\n [\"Codes\"] = 2,\n [\"Distinguish\"] = 1,\n [\"Div col\"] = 4,\n [\"Div col end\"] = 4,\n [\"Efn\"] = 4,\n [\"GBurl\"] = 3,\n [\"Harvtxt\"] = 3,\n [\"IPAc-en\"] = 1,\n [\"Infobox programming language\"] = 1,\n [\"Integrated development environments\"] = 1,\n [\"Main\"] = 12,\n [\"More citations needed section\"] = 2,\n [\"N/A\"] = 3,\n [\"Notelist\"] = 1,\n [\"Nowrap\"] = 3,\n [\"Portal\"] = 1,\n [\"Pp-pc\"] = 1,\n [\"Programming languages\"] = 1,\n [\"Redirect\"] = 1,\n [\"Reflist\"] = 1,\n [\"Rquote\"] = 1,\n [\"See also\"] = 2,\n [\"Sfnp\"] = 5,\n [\"Short description\"] = 1,\n [\"Sister project links\"] = 1,\n [\"Small\"] = 1,\n [\"Space\"] = 1,\n [\"Start date and age\"] = 3,\n [\"URL\"] = 2,\n [\"Update inline\"] = 1,\n [\"Update-inline\"] = 1,\n [\"Use mdy dates\"] = 1,\n [\"Webarchive\"] = 1,\n [\"When\"] = 2,\n [\"Why\"] = 1,\n}\narticle_whitelist = table#1 {\n}\nciteref_patterns = table#1 {\n}\n"},"cachereport":{"origin":"mw-web.codfw.main-645858d48f-gkmm9","timestamp":"20241202164419","ttl":2531746,"transientcontent":true}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"C (programming language)","url":"https:\/\/en.wikipedia.org\/wiki\/C_(programming_language)","sameAs":"http:\/\/www.wikidata.org\/entity\/Q15777","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q15777","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2001-11-10T09:40:48Z","headline":"general-purpose programming language"}</script><script>(window.NORLQ=window.NORLQ||[]).push(function(){var ns,i,p,img;ns=document.getElementsByTagName('noscript');for(i=0;i<ns.length;i++){p=ns[i].nextSibling;if(p&&p.className&&p.className.indexOf('lazy-image-placeholder')>-1){img=document.createElement('img');img.setAttribute('src',p.getAttribute('data-src'));img.setAttribute('width',p.getAttribute('data-width'));img.setAttribute('height',p.getAttribute('data-height'));img.setAttribute('alt',p.getAttribute('data-alt'));p.parentNode.replaceChild(img,p);}}});</script> </body> </html>