C programming Interview questions and answers: COUNTING DIFFERENT CHARACTERS IN A STRING USING C PRO
#include int main() {int num; char str[100]; int i; printf("\n Enter the number"); scanf("%d",&num); sprintf(str,"%d",num); //printf("%s",str); for(i=0;str[i]!='\0';i++) {switch(str[i]) {case '0': printf("Zero\t"); break; case '1': printf("One...