Skip to content

Instantly share code, notes, and snippets.

@beporter
Created October 29, 2014 13:35
Show Gist options
  • Save beporter/0aeb1c8a404c4bcc9041 to your computer and use it in GitHub Desktop.
Save beporter/0aeb1c8a404c4bcc9041 to your computer and use it in GitHub Desktop.
Decided to see if I could still write C from memory.
// Compile: `gcc -Wall -o hello nostalgia.c`
// Run: `./hello`
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char** argv) {
printf("Hello world.\n");
return(0);
}
@beporter
Copy link
Author

Technically I overdid it. This is the bare minimum:

#include <stdio.h>
int main() {
    printf("Hello world.\n");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment