Difference between revisions of "C (programming language)"

From Conservapedia
Jump to navigation Jump to search
m (→‎See also: clean up)
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
'''C''' is the name of a [[procedural programming|procedural]], [[imperative programming|imperative]] [[programming language]] developed in 1972 by Dennis Ritchie at Bell Laboratories.  It was a major improvement over the earlier languages BCPL and B.
 
'''C''' is the name of a [[procedural programming|procedural]], [[imperative programming|imperative]] [[programming language]] developed in 1972 by Dennis Ritchie at Bell Laboratories.  It was a major improvement over the earlier languages BCPL and B.
  
C is still a popular choice for projects where speed and small program size are important considerations, such as embedded firmware. A significant portion of the [[Linux]] [[kernel]] was written in C. The syntax of C inspired many later languages such as [[C++]], [[Java]] and [[C Sharp]].  Many C compilers also support low-level programming via integrated inline assemblers.
+
C is still a popular choice for projects where speed and small program size are important considerations, such as embedded firmware. A significant portion of the [[GNU/Linux|Linux]] [[Operation system kernel|kernel]] was written in C. The syntax of C inspired many later languages such as [[C++]], [[Java]] and [[C Sharp]].  Many C compilers also support low-level programming via integrated inline assemblers.
 
 
This programming language is now used and marketed more heavily by Microsoft.
 
  
 
== "Hello World!" program ==
 
== "Hello World!" program ==
 
+
An example program often used for languages is something that displays "Hello, World!".
 
<pre>
 
<pre>
#include <unistd.h>
+
#include <stdio.h>
  
 
int main()
 
int main()
 
{
 
{
write(0, "Hello World!\n", 13);
+
  printf("Hello World!\n");
return 0;
+
  return 0;
 
}
 
}
</pre>  
+
</pre>
  
==See Also==
+
==See also==
:[http://gcc.gnu.org/ Free compiler], probably the most used free C compiler
+
:[http://gcc.gnu.org/ Free compiler]
 
:[http://www.openwatcom.org/index.php/Main_Page Open Watcom C Compiler], high quality free C/C++ compiler.
 
:[http://www.openwatcom.org/index.php/Main_Page Open Watcom C Compiler], high quality free C/C++ compiler.
 
:[http://www.c-compiler.com/ Miracle C compiler], free c/c++ compiler.
 
:[http://www.c-compiler.com/ Miracle C compiler], free c/c++ compiler.
 
:[http://www.cs.virginia.edu/~lcc-win32/ lcc], portable C compiler, free for non-commercial use.
 
:[http://www.cs.virginia.edu/~lcc-win32/ lcc], portable C compiler, free for non-commercial use.
  
[[Category: Programming Languages]]
+
[[Category:Programming Languages]]

Latest revision as of 15:05, June 23, 2016

C is the name of a procedural, imperative programming language developed in 1972 by Dennis Ritchie at Bell Laboratories. It was a major improvement over the earlier languages BCPL and B.

C is still a popular choice for projects where speed and small program size are important considerations, such as embedded firmware. A significant portion of the Linux kernel was written in C. The syntax of C inspired many later languages such as C++, Java and C Sharp. Many C compilers also support low-level programming via integrated inline assemblers.

"Hello World!" program

An example program often used for languages is something that displays "Hello, World!".

#include <stdio.h>

int main()
{
  printf("Hello World!\n");
  return 0;
}

See also

Free compiler
Open Watcom C Compiler, high quality free C/C++ compiler.
Miracle C compiler, free c/c++ compiler.
lcc, portable C compiler, free for non-commercial use.