String C/C++ Programs Last Updated : 22 May, 2024 Comments Improve Suggest changes Like Article Like Report C program to swap two StringsC Program to Sort an array of names or stringsC Program to Check if a Given String is PalindromeC/C++ Program for Return maximum occurring character in the input stringC/C++ Program for Remove all duplicates from the input string.C/C++ Program for Print all the duplicates in the input string.C/C++ Program for Remove characters from the first string which are present in the second stringC/C++ Program for A Program to check if strings are rotations of each other or notC/C++ Program for Print reverse of a string using recursionC/C++ Program for Write a C program to print all permutations of a given stringC/C++ Program for Divide a string in N equal partsC/C++ Program for Given a string, find its first non-repeating characterC/C++ Program for Print list items containing all characters of a given wordC/C++ Program for Reverse words in a given stringC/C++ Program for Run Length EncodingC/C++ Program for Find the smallest window in a string containing all characters of another stringC/C++ Program for Searching for Patterns | Set 1 (Naive Pattern Searching)C/C++ Program for Searching for Patterns | Set 2 (KMP Algorithm)C/C++ Program for Searching for Patterns | Set 3 (Rabin-Karp Algorithm)C/C++ Program for Searching for Patterns | Set 4 (A Naive Pattern Searching Question)C/C++ Program for Length of the longest substring without repeating charactersC/C++ Program for Print all permutations with repetition of charactersC/C++ Program for Print all interleavings of given two stringsC/C++ Program for Check whether a given string is an interleaving of two other given stringsC/C++ Program for Check whether two strings are anagram of each otherC/C++ Program for Searching for Patterns | Set 5 (Finite Automata)C/C++ Program for Pattern Searching | Set 6 (Efficient Construction of Finite Automata)C/C++ Program for Pattern Searching | Set 7 (Boyer Moore Algorithm – Bad Character Heuristic)C/C++ Program for Dynamic Programming | Set 17 (Palindrome Partitioning)C/C++ Program for Lexicographic rank of a stringC/C++ Program for Print all permutations in sorted (lexicographic) orderC/C++ Program for Longest Palindromic Substring | Set 1C/C++ Program for An in-place algorithm for String TransformationC/C++ Program for Longest Palindromic Substring | Set 2C/C++ Program for Given a sequence of words, print all anagrams together | Set 1C/C++ Program for Given a sequence of words, print all anagrams together | Set 2C/C++ Program for Count words in a given stringC/C++ Program for String matching where one string contains wildcard charactersC/C++ Program for Write your own atoi()C/C++ Program for Dynamic Programming | Set 29 (Longest Common Substring)C/C++ Program for Remove “b” and “ac” from a given stringC/C++ Program for Dynamic Programming | Set 33 (Find if a string is interleaved of two other strings)C/C++ Program for Find the first non-repeating character from a stream of charactersC/C++ Program for Recursively remove all adjacent duplicatesC/C++ Program for Rearrange a string so that all same characters become d distance away C program to find second most frequent character Comment More infoAdvertise with us Next Article String C/C++ Programs R rahulsharmagfg1 Follow Improve Article Tags : C Programs C++ Programs C Language C++ cpp-string C-String C++ String Programs C String Programs +4 More Practice Tags : CPP Similar Reads C Arrays An array in C is a fixed-size collection of similar data items stored in contiguous memory locations. It can be used to store the collection of primitive data types such as int, char, float, etc., as well as derived and user-defined data types such as pointers, structures, etc. Creating an Array in 7 min read Properties of Array in C An array in C is a fixed-size homogeneous collection of elements stored at a contiguous memory location. It is a derived data type in C that can store elements of different data types such as int, char, struct, etc. It is one of the most popular data types widely used by programmers to solve differe 8 min read Length of Array in C The Length of an array in C refers to the maximum number of elements that an array can hold. It must be specified at the time of declaration. It is also known as the size of an array that is used to determine the memory required to store all of its elements.In C language, we don't have any pre-defin 3 min read Multidimensional Arrays in C - 2D and 3D Arrays A multi-dimensional array in C can be defined as an array that has more than one dimension. Having more than one dimension means that it can grow in multiple directions. Some popular multidimensional arrays include 2D arrays which grows in two dimensions, and 3D arrays which grows in three dimension 8 min read Initialization of Multidimensional Array in C In C, multidimensional arrays are the arrays that contain more than one dimensions. These arrays are useful when we need to store data in a table or matrix-like structure. In this article, we will learn the different methods to initialize a multidimensional array in C. The easiest method for initial 4 min read Jagged Array or Array of Arrays in C with Examples Prerequisite: Arrays in CJagged array is array of arrays such that member arrays can be of different sizes, i.e., we can create a 2-D array but with a variable number of columns in each row. These type of arrays are also known as Jagged arrays. Example:arr[][] = { {0, 1, 2}, {6, 4}, {1, 7, 6, 8, 9}, 3 min read Pass Array to Functions in C Passing an array to a function allows the function to directly access and modify the original array. In this article, we will learn how to pass arrays to functions in C.In C, arrays are always passed to function as pointers. They cannot be passed by value because of the array decay due to which, whe 3 min read How to pass a 2D array as a parameter in C? A 2D array is essentially an array of arrays, where each element of the main array holds another array. In this article, we will see how to pass a 2D array to a function.The simplest and most common method to pass 2D array to a function is by specifying the parameter as 2D array with row size and co 3 min read How to pass an array by value in C ? In C programming, arrays are always passed as pointers to the function. There are no direct ways to pass the array by value. However, there is trick that allows you to simulate the passing of array by value by enclosing it inside a structure and then passing that structure by value. This will also p 2 min read Variable Length Arrays (VLAs) in C In C, variable length arrays (VLAs) are also known as runtime-sized or variable-sized arrays. The size of such arrays is defined at run-time.Variably modified types include variable-length arrays and pointers to variable-length arrays. Variably changed types must be declared at either block scope or 2 min read Like