|
Size: 857
Comment:
|
← Revision 7 as of 2026-06-15 13:24:46 ⇥
Size: 671
Comment: Rewrite
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| A statically typed programming language. The design goals were minimalism and mirroring bare metal computer architecture, so as to simplify the process of porting C to new platforms. It allows low-level memory management and features a very concise standard library. | '''C''' is a statically-typed programming language. The design goals were minimalism and mirroring bare metal computer architecture, so as to simplify the process of porting C to new platforms. It allows low-level memory management and features a very concise standard library. |
| Line 9: | Line 9: |
| == Example == | |
| Line 11: | Line 10: |
| A hello world program will look like: | |
| Line 13: | Line 11: |
| {{{ #include <stdio.h> int main() { printf("Hello World!\n"); return 0; } }}} |
== Syntax == |
| Line 21: | Line 13: |
| To compile and run, try: {{{ gcc -o hello hello.c ./hello }}} |
* [[C/ANSISequences|ANSI sequences]] * [[C/Include|Include]] |
| Line 32: | Line 20: |
| == History == | == See also == |
| Line 34: | Line 22: |
| C was developed by Dennis Ritchie at Bell Labs. | [[https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html|GNU C user manual]] |
| Line 36: | Line 24: |
| A C standard was developed as '''ANSI C''' in 1989. While the standard itself continued to develop, today 'ANSI C' refers almost exclusively to the standard of that time. Alternatively it is known as '''C89'''. | [[https://man.archlinux.org/man/gcc.1|gcc(1)]] [[https://man.archlinux.org/man/extra/clang/clang.1.en|clang(1)]] |
C
C is a statically-typed programming language. The design goals were minimalism and mirroring bare metal computer architecture, so as to simplify the process of porting C to new platforms. It allows low-level memory management and features a very concise standard library.
Syntax
