Question: 2. Write a C program to count the number of digits, special characters, upper case and lower case letters in a given string. If the

 2. Write a C program to count the number of digits,

2. Write a C program to count the number of digits, special characters, upper case and lower case letters in a given string. If the given string is "Welcome to CPE 325 in Fall 2018!", the output should be like the following: String: Welcome to CPE 325 in Fall 2018! Contains: 7 digits, 7 special characters, 4 upper case letters and 13 lower case letters Note: You can hard code the given string as follows: char msg [-"Welcome to CPE 325 in Fall 2018!" To print the string in a single line using printf, the following statement can be used: printf ("%s ", msg)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!