C Program to Find the Frequency of a Substring in a String

This is a C Program to find the frequency of substring in the given string. Problem Description This program finds the frequency of substring in the given string. Problem Solution 1. Take a string and a substring as input. 2. Compare the substring with the main string. 3. Count the number of times it matches … Read more

advertisement

C Program to Find the Frequency of Each Word in a String

This C Program finds frequency of every word in a given string. Here is source code of the C Program to find the frequency of every word in 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 … Read more

advertisement

C Program to Delete All Repeated Words in String

This C Program Deletes All Repeated Words in String. Here is source code of the C Program to Delete All Repeated Words in String. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Delete All Repeated Words in String */#include <stdio.h>#include <stdlib.h>#include … Read more

advertisement

C Program to Count Number of Words in a String

This is a C Program to Count the Number of Words in a given text or Sentence. Problem Description This program takes a string as input and count the number of words in the input string. Problem Solution 1. Take a string as input. 2. Using for loop search for a empty space in between … Read more

advertisement

C Program to Find Smallest and Biggest Possible Word which is Palindrome in a String

This is a C program to print smallest and biggest possible word which is palindrome in a given string. Problem Description This C Program print smallest and biggest possible word which is palindrome in a given string. Problem Solution Take input from the user and print smallest and biggest possible word which is palindrome in … Read more

advertisement

C Program to Add Two Binary Strings

This is a C Program to perform binary addition of strings and print it. Problem Description This C Program Performs Binary Addition of strings and Print it. Problem Solution Take input from the user and performs binary addition as shown in the program below. Program/Source Code Here is source code of the C Program to … Read more

advertisement

C Program to Find All Possible Subsets of Given Length in String

This C Program Find all possible subsets of given length in string. Here is source code of the C Program to Find all possible subsets of given length in string. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Find All … Read more

advertisement

C Program to Find First and Last Occurrence of Character in a String

This is a C Program to find first and last occurrence of given character in a string. Problem Description This program takes a string and a character as input and finds the first and last occurrence of the input character in a string. Problem Solution 1. Take a string and a character as input. 2. … Read more

advertisement

C Program to Display All Characters Present in the Prime Position of a String

This is a C Program to display the characters in prime position of a given string. Problem Description This program prints the characters in prime position of a given string. Problem Solution 1. Take a string as input. 2. Find the number which gets divided only once and consecutively print the character of the obtained … Read more

advertisement

C Program to Find the Position of 1-bits

This is a C Program to find the position of string of 1-bits in a number for a given length. Problem Description This C Program finds the position of string of 1-bits in a number for a given length. Problem Solution Take input from the user and finds string position as shown in the program … 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.