Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
Strings
3.3K+ articles
C Language
1.8K+ articles
C Programs
705+ articles
cpp-string
157+ articles
C-Library
133+ articles
C-Functions
87+ articles
C-String
73 posts
Recent Articles
Popular Articles
C Program to Sort a String of Characters
Last Updated: 05 December 2024
Sorting a string of characters refers to the process of rearranging all the characters in the given order. In this article, we will learn how to sort a string of character...
read more
C Language
C-String
C Programs
C Searching Sorting
C-DSA
strncpy() Function in C
Last Updated: 05 August 2024
The strncpy() function in C is a predefined function in the string.h library used to copy a specified number of characters from one string to another. To use this function...
read more
C Language
C-String
C-Functions
C Programs
Picked
How to Split a String by Multiple Delimiters in C?
Last Updated: 28 June 2024
In C, strings are arrays of characters using string manipulation often requires splitting a string into substrings based on multiple delimiters. In this article, we will l...
read more
C Language
C-String
C Programs
Picked
C Examples
How to Match a Pattern in a String in C?
Last Updated: 15 December 2024
Matching a pattern in a string involves searching for a specific sequence of characters within a larger string. In this article, we will learn different methods to efficie...
read more
C Language
C-String
C Programs
Picked
C Examples
How to Split a String by a Delimiter in C?
Last Updated: 17 June 2024
Splitting a string by a delimiter is a common task in programming. In C, strings are arrays of characters, and there are several ways to split them based on a delimiter. I...
read more
C Language
C-String
C Programs
Picked
C Examples
How to Concatenate Multiple Strings in C?
Last Updated: 17 June 2024
In C, concatenating strings means joining two or more strings end-to-end to form a new string. In this article, we will learn how to concatenate multiple strings in C.Exam...
read more
C Language
C-String
Picked
C Examples
strchr in C
Last Updated: 27 May 2025
Thestrchr()function in C is a predefined function in thestring.hlibrary.It is used to find the first occurrence of a character in a string. It checks whether the given cha...
read more
C Language
C-String
Picked
C Library Functions
C Examples
How to Reverse a String in C?
Last Updated: 17 May 2024
In C, a string is a sequence of characters terminated by a null character (\0). Reversing a string means changing the order of the characters such that the characters at t...
read more
C Language
C-String
C Programs
Picked
C Strings Programs
C Basic Programs
Array of Pointers to Strings in C
Last Updated: 04 April 2024
In C, arrays are data structures that store data in contiguous memory locations. Pointers are variables that store the address of data variables. We can use an array of po...
read more
C Language
C-Pointers
C-Arrays
C-String
C Programs
Picked
C Examples
Why is Conversion From String Constant to 'char*' Valid in C but Invalid in C++?
Last Updated: 02 April 2024
In both C and C++, strings are sequences of characters enclosed in double-quotes. In this article, we will learn why is the conversion from string constant to 'char*' vali...
read more
cpp-string
cpp-pointer
C++
C-Pointers
C-String
C++ Programs
Picked
CPP Examples
How to Convert a String to a Char Array in C?
Last Updated: 05 December 2024
In C, the only difference between the string and a character array is possibly the null character '\0' but strings can also be declared as character pointer in which case,...
read more
c-array
C Language
C-String
C Programs
Picked
C Examples
C Program to Compare Two Strings Using Pointers
Last Updated: 28 November 2024
In C, two strings are generally compared character by character in lexicographical order (alphabetical order). In this article, we will learn how to compare two strings us...
read more
C Language
C-Pointers
C-String
C Programs
Picked
C Examples
Copy N Characters from One String to Another Without strncat()
Last Updated: 26 February 2024
In C, strings are the sequence of characters that are used to represent the textual data. Two strings can be easily concatenated or joined using the strncat() function of ...
read more
C Language
C-String
C Programs
Picked
C Examples
C Program to Concatenate Two Strings Using a Pointer
Last Updated: 28 November 2024
Concatenating two strings means appending one string at the end of another string. While the standard library provides strcat() for concatenation, this article will demons...
read more
C Language
C-Pointers
C-String
C Programs
Picked
C Examples
Length of a String Without Using strlen() Function in C
Last Updated: 05 December 2024
The length of a string is the number of characters in it without including the null character. C language provides the strlen() function to find the lenght of the string b...
read more
C Language
C-String
C-Loops & Control Statements
C Programs
Picked
C Examples
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !