Source code

In computer programming, source code is (generally speaking) a text file version of a computer program or software that contains instructions that the computer follows to do something. Source code is written in a programming language which a human can read and change. A large program may contain many different source code files that all work together. These days most source code is compiled when it is finished. This translates the code into assembly language or machine language which is much faster and easier for the computer to read, but hard for a human to read.

A computer program may be open source, which means the source code is shared with anyone who wants to look at it and change it, or closed source, which means only the people who made the program can look at and change the code.

  • example of c source code

Example of C source code

#include <stdio.h>
int main()
{
      printf("Hello world!\n");
      return(0);
}

When compiled by a C compiler and executed, this will print " Hello world!" on the computer screen and then finish.

Other Languages
Afrikaans: Bronkode
العربية: كود مصدري
asturianu: Códigu fonte
azərbaycanca: Mənbə kodu
বাংলা: সোর্স কোড
Bân-lâm-gú: Goân-sú-bé
беларуская: Зыходны код
беларуская (тарашкевіца)‎: Крынічны код
български: Изходен код
bosanski: Izvorni kod
català: Codi font
čeština: Zdrojový kód
dansk: Kildekode
Deutsch: Quelltext
eesti: Lähtekood
English: Source code
español: Código fuente
Esperanto: Fontkodo
euskara: Iturburu kode
فارسی: کد منبع
français: Code source
한국어: 소스 코드
हिन्दी: मूल कोड
hrvatski: Izvorni kod
Bahasa Indonesia: Kode sumber
italiano: Codice sorgente
עברית: קוד מקור
Кыргызча: Баштапкы код
latviešu: Pirmkods
lietuvių: Išeitinis kodas
Bahasa Melayu: Kod sumber
Mìng-dĕ̤ng-ngṳ̄: Nguòng-dâi-mā
Mirandés: Código fuonte
မြန်မာဘာသာ: ဆို့စ်ကုတ်ဒ်
Nederlands: Broncode
norsk: Kildekode
norsk nynorsk: Kjeldekode
олык марий: Тӱҥалтыш код
Pälzisch: Kwälldegschd
português: Código-fonte
română: Cod sursă
Runa Simi: Pukyu qillqa
русский: Исходный код
slovenčina: Zdrojový kód
slovenščina: Izvorna koda
српски / srpski: Изворни код
srpskohrvatski / српскохрватски: Izvorni kod
svenska: Källkod
Türkçe: Kaynak kodu
українська: Початковий код
اردو: سورس کوڈ
Tiếng Việt: Mã nguồn
粵語: 原始碼
中文: 源代码