Coding Guru
A small program to count number of occurrences of the characters in a string
/*
(c) Copyright 2013, CodingGuru.
This program treats space, tab and newline characters as input delimeters,
also it cannot handle control chracters(ctrl+F*) and some of the special characters.
*/
NUMBER_ALPHA 26
MAX_CHARS 100
CAPITAL_START 'A'
SMALL_START 'a'
CAPITAL_END 'Z'
SMALL_END 'z'
SING_PLU(c) c>1?'s':' ' /* Silly but used for output readability*/
int
main()
{
char str[MAX_CHARS];
int small[NUMBER_ALPHA];
int capital[NUMBER_ALPHA];
int i, len;
for(i=0;i
Click here to claim your Sponsored Listing.
Category
Website
Address
Bangalore