C: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 10: | Zeile 10: | ||
} | } | ||
</pre> | </pre> | ||
| + | ==Compile== | ||
| + | *gcc hello-world.c -o hello-world | ||
| + | ==Result== | ||
| + | file * | ||
| + | hello-world: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked ... | ||
| + | hello-world.c: C source, ASCII text | ||
Version vom 2. November 2017, 10:00 Uhr
Hello World
Sourcecode
- cat hello-world.c
#include <stdio.h>
int main(void)
{
puts("Hallo Welt!");
}
Compile
- gcc hello-world.c -o hello-world
Result
file *
hello-world: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked ... hello-world.c: C source, ASCII text