Tag

#c string programs

18 posts

C Program to sort a String in Ascending order

In this tutorial, we will write a c program to sort a string array in ascending order. Before that, you may go through the following topics in C C Program to sort a String in Ascending order Output: Enter the string: programs After sorting, the string appears:agmoprrs

January 18, 2022Read more →

C Program to Compare two Strings using strcmp()

In this tutorial, we will Compare Strings Using strcmp() function in C. But if you want to learn more about String you may go through the following topic in C. strcmp() function is used to compare two string to each other and returns an integer value. The syntax for strcmp() in c: strcmp(first_strin

June 24, 2021Read more →

C Program to Check if a Given String is a Palindrome

In this tutorial, we will write a C program to Check if a Given String is a Palindrome using string function. Before that, you may go through the C topic below. Palindrome Number A number is said to be a Palindrome number if it remains the same when its digits are reversed or are the … Read mo

May 23, 2021Read more →

C String – strchr() function

strchr() function in C is used to search the stated character in a string. It searches the string for the character and stops when the first time the character is found. And if the string needs to be printed, only the character starting from the searched character to the end is printed. The strchr()

April 8, 2021Read more →