CINXE.COM
Tazama chanzo cha C (lugha ya programu) - Wikipedia, kamusi elezo huru
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-available" lang="sw" dir="ltr"> <head> <meta charset="UTF-8"> <title>Tazama chanzo cha C (lugha ya programu) - Wikipedia, kamusi elezo huru</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-disabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-not-available";var cookie=document.cookie.match(/(?:^|; )swwikimwclientpreferences=([^;]+)/);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":true,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat": "dmy","wgMonthNames":["","Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"],"wgRequestId":"f2faae79-09e4-4426-84b7-df7ab27bed3e","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"C_(lugha_ya_programu)","wgTitle":"C (lugha ya programu)","wgCurRevisionId":1108341,"wgRevisionId":0,"wgArticleId":121419,"wgIsArticle":false,"wgIsRedirect":false,"wgAction":"edit","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[],"wgPageViewLanguage":"sw","wgPageContentLanguage":"sw","wgPageContentModel":"wikitext","wgRelevantPageName":"C_(lugha_ya_programu)","wgRelevantArticleId":121419,"wgTempUserName":null,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{ "pageLanguageCode":"sw","pageLanguageDir":"ltr","pageVariantFallbacks":"sw"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":3000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","skins.vector.search.codex.styles":"ready", "skins.vector.styles":"ready","skins.vector.icons":"ready","ext.charinsert.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.edit.collapsibleFooter","site","mediawiki.page.ready","skins.vector.js","ext.centralNotice.geoIP","ext.charinsert","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","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=sw&modules=ext.charinsert.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=sw&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=sw&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="noindex,nofollow,max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/1200px-The_C_Programming_Language_logo.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="1253"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/800px-The_C_Programming_Language_logo.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="835"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/The_C_Programming_Language_logo.svg/640px-The_C_Programming_Language_logo.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="668"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Tazama chanzo cha C (lugha ya programu) - Wikipedia, kamusi elezo huru"> <meta property="og:type" content="website"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//sw.m.wikipedia.org/wiki/C_(lugha_ya_programu)"> <link rel="alternate" type="application/x-wiki" title="Hariri" href="/w/index.php?title=C_(lugha_ya_programu)&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 (sw)"> <link rel="EditURI" type="application/rsd+xml" href="//sw.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://sw.wikipedia.org/wiki/C_(lugha_ya_programu)"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.sw"> <link rel="alternate" type="application/atom+xml" title="Tawanyiko la Atom la Wikipedia" href="/w/index.php?title=Maalum:MabadalikoyaKaribuni&feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-C_lugha_ya_programu rootpage-C_lugha_ya_programu skin-vector-2022 action-edit"><a class="mw-jump-link" href="#bodyContent">Nenda kwa yaliyomo</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Tovuti"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Menyu kuu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Menyu kuu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Menyu kuu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">hamishia kwenye mwambaa upande</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">ficha</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Urambazaji </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Mwanzo" title="Tembelea Mwanzo [z]" accesskey="z"><span>Mwanzo</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Jumuia" title="Kuhusu mradi, mambo unaweza kufanya, na mahali pa kugundua vitu"><span>Jumuiya</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Wikipedia:Matukio_ya_hivi_karibuni" title="Maarifa kuhusu habari za siku hizi"><span>Matukio ya hivi karibuni</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Maalum:MabadalikoyaKaribuni" title="Orodha ya mabadiliko ya hivi karibuni katika Wiki. [r]" accesskey="r"><span>Mabadiliko ya karibuni</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Maalum:UkurasawaBahati" title="Onyesha ukurasa wa bahati [x]" accesskey="x"><span>Ukurasa wa bahati</span></a></li><li id="n-help" class="mw-list-item"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" title="Mahali pa kueleweshwa."><span>Msaada</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Mwanzo" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="Kamusi elezo ya maandishi huru" src="/static/images/mobile/copyright/wikipedia-tagline-sw.svg" width="117" height="10" style="width: 7.3125em; height: 0.625em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Maalum:Tafuta" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Tafuta Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Tafuta</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Tafuta Wikipedia" aria-label="Tafuta Wikipedia" autocapitalize="sentences" title="Tafuta Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Maalum:Tafuta"> </div> <button class="cdx-button cdx-search-input__end-button">Tafuta</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Zana binafsi"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Mandhari"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Badilisha mandhari ya ukubwa, upana, na rangi ya fonti ya ukurasa" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Mandhari" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Mandhari</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_sw.wikipedia.org&uselang=sw" class=""><span>Michango</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Maalum:SajiliAkaunti&returnto=C+%28lugha+ya+programu%29&returntoquery=action%3Dedit" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Unda akaunti</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Maalum:IngiaMtumiaji&returnto=C+%28lugha+ya+programu%29&returntoquery=action%3Dedit" title="Tunakushajiisha kuingia, lakini siyo lazima. [o]" accesskey="o" class=""><span>Ingia</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out user-links-collapsible-item" title="Chaguo zaidi" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Zana binafsi" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Zana binafsi</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&utm_medium=sidebar&utm_campaign=C13_sw.wikipedia.org&uselang=sw"><span>Michango</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Maalum:SajiliAkaunti&returnto=C+%28lugha+ya+programu%29&returntoquery=action%3Dedit" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Unda akaunti</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Maalum:IngiaMtumiaji&returnto=C+%28lugha+ya+programu%29&returntoquery=action%3Dedit" title="Tunakushajiisha kuingia, lakini siyo lazima. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Ingia</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Tovuti"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <h1 id="firstHeading" class="firstHeading mw-first-heading">Tazama chanzo cha C (lugha ya programu)</h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Makala hii inapatikana kwa lugha hii tu. Anzisha makala kwa lugha nyingine" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Ongeza lugha</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="uls-after-portlet-link"></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Maeneo ya wiki"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/C_(lugha_ya_programu)" title="Onyesha kurasa zilizopo [c]" accesskey="c"><span>Makala</span></a></li><li id="ca-talk" class="new vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Majadiliano:C_(lugha_ya_programu)&action=edit&redlink=1" rel="discussion" class="new" title="Mazungumzo kuhusu makala (bado haujaandikwa) [t]" accesskey="t"><span>Majadiliano</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Badilisha lahaja ya lugha" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Kiswahili</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Mitazamo"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="vector-tab-noicon mw-list-item"><a href="/wiki/C_(lugha_ya_programu)"><span>Soma</span></a></li><li id="ca-ve-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&veaction=edit" title="Hariri ukurasa huu na VisualEditor [v]" accesskey="v"><span>Hariri</span></a></li><li id="ca-edit" class="selected collapsible vector-tab-noicon mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&action=edit" title="Hariri chanzo msimbo za ukurasa huu"><span>Hariri chanzo</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&action=history" title="Mapitio ya awali ya ukurasa huu [h]" accesskey="h"><span>Fungua historia</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Zana za ukurasa"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Zana" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Zana</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Zana</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">hamishia kwenye mwambaa upande</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">ficha</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Vitendo </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="vector-more-collapsible-item mw-list-item"><a href="/wiki/C_(lugha_ya_programu)"><span>Soma</span></a></li><li id="ca-more-ve-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&veaction=edit" title="Hariri ukurasa huu na VisualEditor [v]" accesskey="v"><span>Hariri</span></a></li><li id="ca-more-edit" class="selected collapsible vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&action=edit" title="Hariri chanzo msimbo za ukurasa huu [e]" accesskey="e"><span>Hariri chanzo</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&action=history"><span>Fungua historia</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Kijumla </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Maalum:VingoViungavyoUkurasahuu/C_(lugha_ya_programu)" title="Orodha ya kurasa zote za Wiki zilizounganishwa na ukurasa huu [j]" accesskey="j"><span>Viungo viungavyo ukurasa huu</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Maalum:RecentChangesLinked/C_(lugha_ya_programu)" rel="nofollow" title="Mabadiliko ya karibuni ya katika kurasa zilizounganishwa na ukurasa huu [k]" accesskey="k"><span>Mabadiliko husika</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=sw" title="Pakia picha, video, au sauti [u]" accesskey="u"><span>Pakia faili</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Maalum:KurasaMaalum" title="Orodha ya kurasa zote maalumu [q]" accesskey="q"><span>Kurasa maalumu</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=C_(lugha_ya_programu)&action=info" title="More information about this page"><span>Maelezo ya ukurasa</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Maalum:UrlShortener&url=https%3A%2F%2Fsw.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DC_%28lugha_ya_programu%29%26action%3Dedit"><span>Pata URL iliyofupishwa</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Maalum:QrCode&url=https%3A%2F%2Fsw.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DC_%28lugha_ya_programu%29%26action%3Dedit"><span>Pakua msimbo wa QR</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> Miradi mingine </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q15777" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata kifungu</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Zana za ukurasa"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Mandhari"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Mandhari</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">hamishia kwenye mwambaa upande</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">ficha</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> </div> <div id="contentSub"><div id="mw-content-subtitle">← <a href="/wiki/C_(lugha_ya_programu)" title="C (lugha ya programu)">C (lugha ya programu)</a></div></div> <div id="mw-content-text" class="mw-body-content"><p>Huruhusiwi kuhariri ukurasa huu, kwa sababu hiyo: </p> <div class="permissions-errors"><div class="mw-permissionerror-globalblocking-blockedtext-range"><b>Your IP address is in a range that has been <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Global_blocks" class="extiw" title="m:Special:MyLanguage/Global blocks">blocked on all Wikimedia Foundation wikis</a>.</b> <p>The block was made by <a href="/wiki/Mtumiaji:Jon_Kolbert" title="Mtumiaji:Jon Kolbert">Jon Kolbert</a>. The reason given is <i><a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/NOP" class="extiw" title="m:Special:MyLanguage/NOP">Open proxy/Webhost</a>: See the <a href="https://meta.wikimedia.org/wiki/WM:OP/H" class="extiw" title="m:WM:OP/H">help page</a> if you are affected </i>. </p> <ul><li>Start of block: 15:12, 27 Agosti 2023</li> <li>Expiry of block: 15:12, 27 Agosti 2028</li></ul> <p>Your current IP address is 8.222.208.146. The blocked range is 8.222.128.0/17. </p><p>Tafadhali jumuisha taarifa zote hapo juu katika maswali yoyote unayouliza. Ikiwa unaamini kuwa ulizuiwa kimakosa, unaweza kupata maelezo na maagizo ya ziada katika sera ya kimataifa ya <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/No_open_proxies" class="extiw" title="m:Special:MyLanguage/No open proxies">No open proxies</a>. </p> La sivyo, ili kujadili kizuizi tafadhali <a href="https://meta.wikimedia.org/wiki/Steward_requests/Global" class="extiw" title="m:Steward requests/Global">chapisha ombi la ukaguzi kwenye Meta-Wiki</a>. You could also send an email to the <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Stewards" class="extiw" title="m:Special:MyLanguage/Stewards">stewards</a> <a href="https://meta.wikimedia.org/wiki/Special:MyLanguage/VRT" class="extiw" title="m:Special:MyLanguage/VRT">VRT</a> queue at <kbd>stewards@wikimedia.org</kbd> including all above details.</div></div><hr /> <p>Unaweza kutazama na kunakili chanzo cha ukurasa huu. </p><textarea readonly="" accesskey="," id="wpTextbox1" cols="80" rows="25" style="" class="mw-editfont-monospace" lang="sw" dir="ltr" name="wpTextbox1">{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->|Lugha|Ukao|jina=C|picha=[[File:The C Programming Language logo.svg|The C Programming Language logo|200px]]|image_bg=|shina la studio=namna : namna ya utaratibu|imeanzishwa={{Birth date and age|mf=yes|1972|1|1|df=yes}}|mwanzilishi=Dennis Ritchie|ilivyo sasa=Ilivutwa na: B (BCPL, CPL), ALGOL 68, Assembly, PL/I, FORTRAN Ilivuta: AMPL, AWK, csh, C++, C--, C#, Objective-C, D, Go, Java, JavaScript, Julia, Limbo, LPC, Perl, PHP, Pike, Processing, Python, Ring, Rust, Seed7, Vala, Verilog (HDL), Nim|Usambazaji=|aina za muziki=|nchi=|mahala=Dennis Ritchie & Bell Labs; ANSI X3J11 (ANSI C); ISO/IEC JTC1/SC22/WG14 (ISO C)|tovuti=https://www.learn-c.org}} '''C''' ni [[lugha ya programu]]. Iliundwa na [[Dennis Ritchie]] na ilianzishwa [[tarehe]] [[1 Januari]] [[1972]]. Iliundwa ili kuumba [[Mfumo ya uendeshaji|mifumo ya uendeshaji]]. Leo tunatumia C 18. Ilivutwa na [[FORTRAN]]. Inaitwa C kwa sababu ni mageuzi ya B, lugha ya programu nyingine. == Historia == Ilianzishwa 1 Januari 1972 nchini [[Marekani]]. Lakini Dennis Ritchie alianza kufanya kazi kuhusu C mwaka wa [[1970]]. == Falsafa == Namna ya C ni namna ya utaratibu kinyume cha lugha za programu nyingi. == Sintaksia == [[Sintaksia]] ya C ni ngumu sana kinyume cha lugha za programu nyingine kama [[JavaScript]], [[Python (Lugha ya programu)|Python]] au [[Ruby]]. Ilivutwa na sintaksia ya B, lugha ya programu nyingine. == Mifano ya C == Programu kwa kuchapa « Jambo ulimwengu !».<syntaxhighlight lang="c"> #include <stdio.h> int main(void) { printf("Jambo ulimwengu !\n"); } </syntaxhighlight>Programu kwa kutafuta factoria ya namba moja.<syntaxhighlight lang="c"> #include <stdio.h> int main() { int n, i; unsigned long long fact = 1; printf("Enter an integer: "); scanf("%d", &n); // shows error if the user enters a negative integer if (n < 0) printf("Error! Factorial of a negative number doesn't exist."); else { for (i = 1; i <= n; ++i) { fact *= i; } printf("Factorial of %d = %llu", n, fact); } return 0; } </syntaxhighlight> == Marejeo == {{Refbegin}} *Ritchie, Dennis M. (1993). The Development of the C Language. The Second ACM SIGPLAN History of Programming Languages Conference (HOPL-II). Cambridge, MA, USA — April 20–23, 1993: ACM. pp. 201–208. doi:10.1145/154766.155580. ISBN 0-89791-570-4. Retrieved 2014-11-04. *Kernighan, Brian; Ritchie, Dennis (1988). The C Programming Language (2 ed.). Prentice Hall. ISBN 978-0131103627. (archive) *Plauger, P.J. (1992). The Standard C Library (1 ed.). Prentice Hall. ISBN 978-0131315099. (source) *Banahan, M.; Brady, D.; Doran, M. (1991). The C Book: Featuring the ANSI C Standard (2 ed.). Addison-Wesley. ISBN 978-0201544336. (archive) *Harbison, Samuel; Steele Jr, Guy (2002). C: A Reference Manual (5 ed.). Pearson. ISBN 978-0130895929. (archive) *King, K.N. (2008). C Programming: A Modern Approach (2 ed.). W. W. Norton. ISBN 978-0393979503. (archive) *Perry, Greg; Miller, Dean (2013). C Programming: Absolute Beginner's Guide (3 ed.). Que. ISBN 978-0789751980. [[Jamii:Kompyuta]] [[Jamii:Lugha za programu]] </textarea><div class="templatesUsed"><div class="mw-templatesUsedExplanation"><p>Vigezo vinavyotumiwa kwenye ukurasa huu: </p></div><ul> <li><a href="/wiki/Kigezo:Birth_date_and_age" title="Kigezo:Birth date and age">Kigezo:Birth date and age</a> (<a href="/w/index.php?title=Kigezo:Birth_date_and_age&action=edit" title="Kigezo:Birth date and age">hariri</a>) </li><li><a href="/wiki/Kigezo:Infobox_record_label" title="Kigezo:Infobox record label">Kigezo:Infobox record label</a> (<a href="/w/index.php?title=Kigezo:Infobox_record_label&action=edit" title="Kigezo:Infobox record label">hariri</a>) </li><li><a href="/wiki/Kigezo:MONTHNAME" title="Kigezo:MONTHNAME">Kigezo:MONTHNAME</a> (<a href="/w/index.php?title=Kigezo:MONTHNAME&action=edit" title="Kigezo:MONTHNAME">hariri</a>) </li><li><a href="/wiki/Kigezo:MONTHNUMBER" title="Kigezo:MONTHNUMBER">Kigezo:MONTHNUMBER</a> (<a href="/w/index.php?title=Kigezo:MONTHNUMBER&action=edit" title="Kigezo:MONTHNUMBER">hariri</a>) </li><li><a href="/wiki/Kigezo:Refbegin" title="Kigezo:Refbegin">Kigezo:Refbegin</a> (<a href="/w/index.php?title=Kigezo:Refbegin&action=edit" title="Kigezo:Refbegin">hariri</a>) </li><li><a href="/wiki/Kigezo:Umri" title="Kigezo:Umri">Kigezo:Umri</a> (<a href="/w/index.php?title=Kigezo:Umri&action=edit" title="Kigezo:Umri">hariri</a>) </li></ul></div><p id="mw-returnto">Rudia <a href="/wiki/C_(lugha_ya_programu)" title="C (lugha ya programu)">C (lugha ya programu)</a>.</p> <!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Rudishwa kutoka "<a dir="ltr" href="https://sw.wikipedia.org/wiki/C_(lugha_ya_programu)">https://sw.wikipedia.org/wiki/C_(lugha_ya_programu)</a>"</div></div> <div id="catlinks" class="catlinks catlinks-allhidden" data-mw="interface"></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Sera ya faragha</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:Kuhusu">Kuhusu Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:Kanusho_kwa_jumla">Kanusho</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">Waunzi programu</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/sw.wikipedia.org">takwimu</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Maelezo ya kuki</a></li> <li id="footer-places-mobileview"><a href="//sw.m.wikipedia.org/w/index.php?title=C_(lugha_ya_programu)&action=edit&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mtazamo wa rununu</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-6bcf67d78c-62gkb","wgBackendResponseTime":205,"wgPageParseReport":{"limitreport":{"cputime":"0.005","walltime":"0.006","ppvisitednodes":{"value":17,"limit":1000000},"postexpandincludesize":{"value":704,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":2,"limit":100},"expensivefunctioncount":{"value":0,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"origin":"mw-web.codfw.main-6bcf67d78c-62gkb","timestamp":"20241127222930","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>