C Program to Find the Length of the String

This C Program uses recursive function & counts the number of nodes in a linked list. A linked list is an ordered set of data elements, each containing a link to its successor. Here is the source code of the C program to count the number of nodes in a linked list. The C Program … Read more

advertisement

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

This is a C Program to find the first capital letter in a string without using recursion. Problem Description The following C program, using iteratiom, 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 … Read more

advertisement

Anagram Program in C

Anagram Program in C: Two strings are said to be anagrams if they satisfy two conditions, the length of both strings must be equal to each other and second the strings must have the same set of characters. Example 1: First String = “hectare” and Second String = “teacher” Case 1: Lengths must be equal … Read more

advertisement

C Program to Copy One String to Another using Recursion

This is a C Program to copy one string to another using recursion. Problem Description This C Program Copies One String to Another using Recursion. Problem Solution This C Program uses recursive function & copies a string entered by user from one character array to another character array. Program/Source Code Here is the source code … Read more

advertisement

C Program to Check whether a String is Palindrome or not using Recursion

This is a C program to check whether a given string is palindrome or not using recursion. Problem Description The following C program, with recursion, determines whether the entered string is a palindrome or not. Problem Solution A palindrome is a word, phrase or sentence that reads the same backward or forward. Program/Source Code Here … Read more

advertisement

C Program to Check if the Substring is Present in the Given String

This is a C program to check if the substring is present in the given string. Problem Description This C Program checks the substring is present in the given string. Problem Solution The program accepts both string and substring. Then checks whether the substring is present in the given string. Program/Source Code Here is source … Read more

advertisement

String Palindrome Program in C

String Palindrome Program in C: A palindrome is a word, phrase or sentence that reads the same backward or forward. A string is said to be a palindromic string when we traverse it from start to end or end to start then we get the same result. Examples: ada, malayalam, racecar, mom, etc. In simple … Read more

advertisement

C Program to Read a String and Find the Sum of all Digits in the String

This is a C program to read a string and find the sum of all digits in the string. Problem Description This program takes a string containing both digits and alphabet as input and finds the sum of all digits in the string. Problem Solution 1. Take the string as input. 2. Check for the … Read more

advertisement

C Program to Find the Length of the String

The length of a string can be determined using the built-in library function strlen() in the “string.h” header file. Examples: String: “Hello” Length of the string is: 5 String: “Sanfoundry” Length of the string is: 10 Problem Description Write a C Program to find the length of a String. Problem Solution 1. Take a string … Read more

advertisement

C Program to Find the Frequency of “the” Word in a String

This is a C program to find the frequency of the word ‘the’ in a given sentence. Problem Description This program takes the sentence as input and finds the frequency of the word ‘the’ in a given sentence. Problem Solution 1. Take any sentence as input. 2. Check for the word ‘the’ in the input … 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.