C Program to Find the Sum of ASCII Value of All Characters in the String

This is a C Program to find the sum of ASCII values of all characters in a given string. Problem Description This program takes a string as input and finds the sum of ASCII values of all characters in a given string. Problem Solution 1. Take a string as input and store it in the … Read more

advertisement

C Program to Print the Words Ending with Letter S

This is a C Program to print the words ending with letter s. Problem Description This program takes a string as input and print the words ending with letter s. Problem Solution 1. Take a string as input. 2. Find the blank space in the string and then check if the previous letter is ‘s’ … Read more

advertisement

C Program to Concatenate Two Strings Lexically

This is a C program to concatenate two strings lexically. Problem Description This C Program concatenates the given two strings lexically. Problem Solution Take input from the user and concatenates the two strings as shown in the program below. Program/Source Code Here is source code of the C Program to concatenate the given two strings … Read more

advertisement

C Program to List All Lines Containing a given String

This C Program listS all lines containing a given string. Here is source code of the C Program to list all lines containing a given string. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to List All Lines containing a given … Read more

advertisement

C Program to Reverse a String

Problem Description Write a C program to reverse a string using loops, recursion, pointers, and the built-in strrev() function. Reverse a String in C Reversing a string means replacing the last element in the first position and vice versa and doing it for all characters in a string. For example, the first character is swapped … Read more

advertisement

C Program to Find Highest Frequency Character in a String

This C Program finds highest frequency character in a string. Here this program checks which character has occured more number of times and checks how many times these character has occured. Here is source code of the C Program to find the highest frequency character in a string. The C program is successfully compiled and … Read more

advertisement

C Program to Remove Given Word from a String

This is a C Program to remove given word from a string. Problem Description This program takes string and its substring as input and removes the substring from the string. Problem Solution 1. Take a string and its substring as input. 2. Put each word of the input string into the rows of 2-D array. … Read more

advertisement

C Program to Count the Occurrence of a Substring in String

This is a C Program to count the occurrence of a substring in string. Problem Description This program takes a string and a substring as input and counts the occurrence of a substring in string. Problem Solution 1. Take a string and a substring as input. 2. Firstly check for the substring in the string. … Read more

advertisement

C Program to Reverse a String using Recursion

This is a C Program to reverse the string using recursion. Problem Description This C Program reverses the string using recursion. Problem Solution This C Program uses recursive function & reverses the string entered by user in the same memory location. Eg: “program” will be reversed to “margorp” Program/Source Code Here is the source code … Read more

advertisement

C Program to Find the First Capital Letter in a String using Recursion

This is a C Program to find the first capital letter in a string using recursion. Problem Description The following C program, using recursion, finds the first capital letter that exists in a string. Problem Solution We have included ctype.h in order to make use of “int isupper(char);” function that’s defined inside the ctype.h headerfile. … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.