|
Size: 668
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: |
| == Installation == | == See also == |
| Line 34: | Line 22: |
| ---- | [[https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html|GNU C user manual]] |
| Line 36: | Line 24: |
| [[https://man.archlinux.org/man/gcc.1|gcc(1)]] | |
| Line 37: | Line 26: |
== Language == * [[C/ANSISequences|ANSI sequences]] |
[[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
