10 - Character Handling Library
10 - Character Handling Library
h)
The following are the commonly used character handling functions. To use these functions, include
ctype.h library in your program.
Sample
Sample Program
Output
Exercise
Test Data :
Input the string : This is w3resource.com
Expected Output:
Total number of words in the string is: 3
Filename: wordcount.c
2. Write a program in C to count the total number of alphabets, digits and special characters in a
string.
Test Data :
Input the string : Welcome to w3resource.com
Expected Output:
Number of Alphabets in the string is: 21
Number of Digits in the string is: 1
Number of Special characters in the string is: 4
Filename: stringcount.c