Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. int ndigit[10];
  2. ...//fill in the array with 0s
  3.  
  4. while((c = getchar()) != EOF)
  5. if(c >= '0' && c <= '9')
  6. ++ndigit[c - '0']; //<== unable to understand this part
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement