Skip to content

Instantly share code, notes, and snippets.

@grant-h
Last active August 2, 2022 06:12
Show Gist options
  • Save grant-h/96d3368e2a48634f87ac to your computer and use it in GitHub Desktop.
Save grant-h/96d3368e2a48634f87ac to your computer and use it in GitHub Desktop.
A 400 byte, alternative "Hello world!"
// Run with gcc -o hello hello.c && ./hello
// An alternative "Hello World!" By DigitalCold
#include<unistd.h>
#include<errno.h>
main(){char*s=&errno,
*a=s,*t="@?>=",*z=t,
h[]={12,29,7,0,3,177,
87,-8,3,-6,-8,189,233,
1};for(;*z;s--){for(
;access(s,0),*a==14;
s-=1<<12);z=*s==*z++?
z:t;}t=h;while(putchar
(*(s+=*t)),*++t!=1);}
@grant-h
Copy link
Author

grant-h commented Jan 21, 2015

Hint: egghunter

@radwany2020
Copy link

☻️

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