Difference between revisions of "Source code"

From Conservapedia
Jump to navigation Jump to search
(New page: == Source Code == Source code is the internal programing of a peice of software. In order to properly read and understand the source code in a program a fundemental level of knowledge...)
 
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
'''Source code''' is the statements and declarations, usually in human readable form, the specifies a computer program.  Knowledge of programming is usually necessary in order to read and understand source code in a program.
  
−
== Source Code ==
+
== Example ==
−
Source code is the internal programing of a peice of [[software]]. In order to properly read and understand the source code in a program a fundemental level of knowledge is needed in the programing language used.
+
The following is an example of a C program that when compiled and executed prints the words "[[Hello World|Hello world]]" to the screen. A "C" [[Compilation|compiler]] and [[linker]] is necessary to compile the program and turn it into an executable.  Historically, an assembler is also needed, but newer compilers often integrate the assembler and linker functions together.
 +
<pre>
 +
<nowiki>
 +
/* This is a C language program comment */
 +
#include <stdio.h>
 +
#include <stdlib.h>
 +
main()
 +
{
 +
  printf("Hello world.");
 +
}
 +
</nowiki>
 +
</pre>
  
−
[[Open Source]] software is software that makes the source code freely avilable.
+
== See also ==
 +
* [[Software]]
 +
* [[Machine code]]
 +
* [[Open source|Open Source]]
 +
 
 +
 
 +
[[Category:Computers]]
 +
[[Category:Computer Science]]
 +
[[Category:Linux]]
 +
[[Category:Operating Systems]]
 +
[[Category:Free Software]]
 +
[[Category:Linux]]
 +
[[Category:Software]]
 +
[[Category:Open Source]]

Latest revision as of 06:37, December 4, 2014

Source code is the statements and declarations, usually in human readable form, the specifies a computer program. Knowledge of programming is usually necessary in order to read and understand source code in a program.

Example

The following is an example of a C program that when compiled and executed prints the words "Hello world" to the screen. A "C" compiler and linker is necessary to compile the program and turn it into an executable. Historically, an assembler is also needed, but newer compilers often integrate the assembler and linker functions together.


/* This is a C language program comment */
#include <stdio.h>
#include <stdlib.h>
main()
{
  printf("Hello world.");
}

See also