Skip to content

Instantly share code, notes, and snippets.

@funrep
Created September 22, 2012 19:56
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/3767620 to your computer and use it in GitHub Desktop.
Save funrep/3767620 to your computer and use it in GitHub Desktop.
asdsad
#include <stdio.h>
main()
{
int c, counts[256];
while((c = getchar()) != EOF)
++counts[c];
printf("%d\n", counts[c]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment