Program to check String is Palindrome
Description A string is called palindrome if reverse of the string is same as string. To check string is palindrome traverse string from beginning and compare character of string from…
All Program Related To Data Structure
Description A string is called palindrome if reverse of the string is same as string. To check string is palindrome traverse string from beginning and compare character of string from…
Description If a string is inserted into a text. Then newer string is the collection all characters present in both the string. Example : Input : text : whatthat string…
Description A substring is a part of a string. C/C++ /* C program to find substring of specified length */ //Save it as ExtractSubstring.c #include<stdio.h> int main(){ char str[100], substr[100];…
Description Reverse of a string means to swap the first character with last character, second character with second last character and so on. C/C++ /* C program to reverse a…
Description * To compare two strings, each and every character is compared from both the strings. * If str1 and str2 are strings, then comparing two strings will give, 1)…
Description Append one string to another means copy the content of one string to the end of another string. C/C++ /* C program to append one string to another string…
Description Two way To convert uppercase to lowercase or vice versa 1) Travese the string character by character add 32 to convert uppercase to lowercase and substract 32 to convert…
Description * The number of character in a string is length of string. * Blank spaces also counted as character in string. C/C++ /* C program to find length of…
Description To delete duplicate elements in an array using set store the elements of array into set. As set does no contain the duplicate, it will give output after removal…
Description To find numbers smaller than given number, take a loop and compare current element with other elements, if other element is small increase the count. Example: arr = [5,2,9,4,7]…