/* * sample-hello.c: the classic first C program. * Free sample from 99helpers.com/file-types/c * * This copy is saved with Windows (CRLF) line endings on purpose. Every * C compiler accepts them; use it to test editors, diffs and Git settings. * * Build and run: cc sample-hello.c -o hello && ./hello * Windows (MSVC): cl sample-hello.c then sample-hello.exe */ #include int main(void) { printf("Hello, world!\n"); return 0; }