Skip to content

Instantly share code, notes, and snippets.

@cleure
Created November 6, 2012 00:05
Show Gist options
  • Save cleure/4021277 to your computer and use it in GitHub Desktop.
Save cleure/4021277 to your computer and use it in GitHub Desktop.
C - Nonsensical Hello World
#include <stdio.h>
#include <stdint.h>
#define CHR(in) ((in) > 25 ? (in)+6 : (in)+65)
int main(int argc, char **argv)
{
int i;
uint64_t data = 976561444569328775LU;
for (i = 0; i < 12; i++) {
putchar(CHR(data >> (i*5) & 0x1f));
}
putchar('\n');
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment