Tutorials
Courses
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
32.8K+ articles
DSA
20.1K+ articles
Misc
8.2K+ articles
C++
4.2K+ articles
Strings
2.9K+ articles
STL
1.3K+ articles
CPP-Functions
619+ articles
cpp-string
157+ articles
cpp-algorithm-library
81+ articles
cpp-strings
59+ articles
cpp-strings-library
46 posts
Recent Articles
Popular Articles
std::strncmp() in C++
Last Updated: 02 July 2024
std::strncmp() function in C++ lexicographically compares not more than count characters from the two null-terminated strings and returns an integer based on the outcome. ...
read more
C++
STL
cpp-strings-library
strstr() in C/C++
Last Updated: 11 January 2025
In C/C++, std::strstr() is a predefined function used for string matching. string.h is the header file required for string functions. This function takes two strings s1 an...
read more
C++
cpp-strings-library
<strings> library in C++ STL
Last Updated: 21 August 2024
Member functionsString.constructor : Construct string object (public member function ).String.destructor : String destructor (public member function )String.operator= : St...
read more
Misc
C++
cpp-string
cpp-strings-library
std::stol() and std::stoll() Functions in C++
Last Updated: 25 October 2024
In C++, std::stol() and std::stoll() are the library functions used to convert the given string to integer value of type long int and long long int respectively. They are ...
read more
C++
STL
cpp-string
CPP-Functions
cpp-strings-library
String find() in C++
Last Updated: 25 April 2025
In C++, string find() is a built-in library function used to find the first occurrence of a substring in the given string. Let’s take a look at a simple example that shows...
read more
C++
Picked
cpp-string
cpp-strings-library
Print the given 3 string after modifying and concatenating
Last Updated: 13 March 2023
Given three strings(without spaces). The task is to print the new string after modifying the three given string as follows:Replace all the vowels present in the first stri...
read more
Misc
C++ Programs
Computer Science Fundamentals
DSA
C-String-Question
cpp-strings-library
Check if a String can be converted to Pangram in K changes
Last Updated: 01 September 2022
Given a String str containing only lowercase English alphabets and an integer K. The task is to check that whether the string can be converted to a Pangram by performing a...
read more
Misc
Strings
DSA
Hash
cpp-strings-library
ASCII
Different ways to copy a string in C/C++
Last Updated: 11 June 2023
Copying a string is a common operation in C/C++ used to create a duplicate copy of the original string. In this article, we will see how to copy strings in C/C++.Methods t...
read more
C++
Technical Scripter 2020
C-String
cpp-strings-library
string::npos in C++ with Examples
Last Updated: 21 September 2023
What is string::npos?It is a constant static member value with the highest possible value for an element of type size_t.It actually means until the end of the string.It is...
read more
C++
cpp-string
cpp-strings-library
cpp-strings
Remove all occurrences of a character from a string using STL
Last Updated: 21 December 2021
Given a string S and a character C, the task is to remove all the occurrences of the character C from the given string.Examples:Input:vS = "GFG IS FUN", C = 'F'Output:GG I...
read more
Strings
DSA
STL
cpp-strings-library
STL Ropes in C++
Last Updated: 03 November 2022
Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as assignment, concatenation, and ...
read more
C++
cpp-string
cpp-strings-library
cpp-strings
strcat() in C
Last Updated: 11 March 2023
C strcat() function appends the string pointed to by src to the end of the string pointed to by dest. It will append a copy of the source string in the destination string....
read more
C Language
TrueGeek-2021
CPP-Functions
C-String
C-Functions
cpp-strings-library
How Do I Handle Multi-Byte Characters in C++?
Last Updated: 08 April 2024
In C++, characters are represented using the char data type, which is designed to hold a single byte. However, there are many languages other than English, and all these c...
read more
C++ Programs
C++
Picked
cpp-string
cpp-strings-library
CPP Examples
std::string::empty() in C++
Last Updated: 09 April 2024
The std::string::empty()function in C++ is a predefined member function of the std::string class template.This function is used to check if a string is empty, i.e., whethe...
read more
C++ Programs
C++
Picked
STL
cpp-string
cpp-strings-library
CPP Examples
std::string::size() in C++
Last Updated: 16 October 2024
The std::string::size() function in C++ is a built-in method of the std::string class that is used to determine the number of characters in the string. All characters up t...
read more
C++
cpp-string
CPP-Functions
cpp-strings-library
1
2
3
4
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 !