Last active
August 29, 2015 13:56
-
-
Save Rembane/8791992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void count_freq(int *number, int number_length) { | |
int *freqs[MAX], *p1; | |
// Nollställ först | |
for(p1=freqs; p1 < freqs + MAX; p1++) { | |
*p1 = 0; | |
} | |
for(p1=number; p1 < number + number_length; p1++) { | |
freqs[*p1-1]++; | |
} | |
// Printa och grejer... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment