|
Size: 293
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 2: | Line 2: |
'''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 7: | Line 9: |
| == Example == | |
| Line 9: | Line 10: |
| A hello world program will look like: | |
| Line 11: | Line 11: |
| {{{ #include <stdio.h> int main() { printf("Hello World!\n"); return 0; } }}} |
== Syntax == |
| Line 19: | Line 13: |
| To compile and run, try: | * [[C/ANSISequences|ANSI sequences]] * [[C/Include|Include]] |
| Line 21: | Line 16: |
| {{{ gcc -o hello hello.c ./hello }}} |
---- == See also == [[https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html|GNU C user manual]] [[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
