Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ndigit[10];
- ...//fill in the array with 0s
- while((c = getchar()) != EOF)
- if(c >= '0' && c <= '9')
- ++ndigit[c - '0']; //<== unable to understand this part
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement