Program to calculate the length of a string


Question 1) Write a program to add number of days or number of months in a given date.

Question 2) Write a program to print all the prime numbers till the given number.

Question 3) Write a program to count the number of spaces, tabs and new line characters in a given string.

Question 4) Write a program to input a character and a string. Each occurrence of a character in the string should be converted to opposite case i.e. upper to lower case or vice versa.

Question 5) Write a program to count the number of words and number of characters in a given line of text except the spaces.

Question 6) Write a program to input a multi word string and produce a string in which first letter of each word is capitalized.

Question 7) Write a program to count the numbers of vowels, consonants, digits and special symbols in a given string.

Question 8) Write a program to count the lower case and upper case letters in a string.

Question 9) Write a program to search a character in a given string.

Question 10) Write a program to search a given string into another string and displays the position if found otherwise displays 0.

Question 11) Write a program to find a substring of given string.

Question 12) Write a program to extract specified number of characters from a given position from a string.

Question 13) Write a program to count all the occurrences of a character in a given string.

Question 14) Write a program to calculate the length of a string.

Question 15) Write a program to input two strings and print which one is lengthier.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Program to calculate the length of a string
Reference No:- TGS04891

Expected delivery within 24 Hours