This shows you the differences between two versions of the page.
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: | ||
- | C 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 ' | ||
+ | system in fact predates C, but was re-implemented in C shortly after the | ||
+ | language' | ||
+ | |||
+ | 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 < | ||
+ | |||
+ | main() { | ||
+ | printf(" | ||
+ | } | ||
+ | |||
+ | |||
+ | ==== Further reading ==== | ||
+ | |||
+ | Kernighan, B. W. & Ritchie, D. M. (1988). //The C programming language// | ||
+ | (2nd ed.). Upper Saddle River, NJ: Prentice Hall. |