User Tools

Site Tools


c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
c [2016/08/16 19:28]
blair created
c [2017/11/10 23:14] (current)
jandal Fix headings.
Line 1: Line 1:
-Programming Language+====== ====== 
 + 
 +C is a programming language developed by Dennis Ritchie at Bell Labs in 
 +the early 1970s. It is a systems programming language, widely used 
 +in the implementation of operating systems and operating system 
 +utilities, as well as many other programs. It is one of the most 
 +influential programming languages to date. 
 + 
 +C is considered the 'language of UNIX'; however, the UNIX operating 
 +system in fact predates C, but was re-implemented in C shortly after the 
 +language's creation. 
 + 
 +C is available on systems including the PDP 11/70. 
 + 
 +===== Invocation ===== 
 + 
 +As C is a compiled language, your program must be compiled and possibly 
 +linked before it can be executed. 
 + 
 +==== On UNIX ==== 
 + 
 + $ cc program.c -o program 
 + $ ./program 
 + 
 +===== Example ===== 
 + 
 +==== Hello World ==== 
 + 
 +From Kernighan and Ritchie (1988). 
 + 
 + #include <stdio.h> 
 +         
 + main() { 
 + printf("hello, world\n"); 
 +
 + 
 + 
 +==== Further reading ==== 
 + 
 +Kernighan, B. W. & Ritchie, D. M. (1988). //The C programming language// 
 +(2nd ed.). Upper Saddle River, NJ: Prentice Hall.
c.1471375735.txt.gz · Last modified: 2016/08/16 19:28 by blair