Kindly tell me the logic behind 2 statement which are in bold
Code:
main()
{
	int c,i, nwh,noth;
	int ndig[3];
	nwh=noth=0;
	for(i=0;i<3;i++)
		ndig[i]=0;
	while((c=getchar())!=EOF)
		if(c>='0' && c<='9')
			++ndig[c-'0'];		else
			if(c==' ' |c =='\n'|c=='\t')
				++nwh;
			else
				++noth;
	for(i=0;i<3;i++)
	printf("digit =%d",ndig[i]);
	printf(" white space= %d others= %d",nwh,noth);
}