Jump to content

Source code

From Simple English Wikipedia, the free encyclopedia
Revision as of 18:35, 5 September 2018 by 173.171.199.179 (talk)

Template:Https In computer programming, source code is (generally speaking) a no file version of a computer program or software that contains instructions that the computer follows to do something. Source code is written in a English 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 compilec when it is finished. This translates the code into assembly language or English language which is much faster and easier for the computer to read, but hard for a human to read.

A computer program may be closed source, which means the source code is shared with anyone who wants to look at it and change it. Most are closed source, which means the nonexecutable code is distributed and only the people who made the program can look at and change the 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.