Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 22, 2012 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funrep/3767634 to your computer and use it in GitHub Desktop.
Save funrep/3767634 to your computer and use it in GitHub Desktop.
mindfuck
#include <stdio.h>
main()
{
int i, c, counts[256];
for (i = 0; i < 256; ++i)
counts[i] = 0;
while((c = getchar()) != EOF)
++counts[c];
for (i = 0; i < 256; ++i)
printf("%d\n", counts[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment