Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.5K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
Strings
2.1K+ 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
std::string::size() in C++
Last Updated: 23 July 2025
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
std::string::empty() in C++
Last Updated: 23 July 2025
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
How Do I Handle Multi-Byte Characters in C++?
Last Updated: 23 July 2025
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
strcat() in C
Last Updated: 09 July 2026
The strcat() function appends the source string to the end of the destination string. It is declared in the string.h header file.It adds the source string after the destin...
read more
C Language
TrueGeek-2021
CPP-Functions
C-String
C-Functions
cpp-strings-library
STL Ropes in C++
Last Updated: 23 July 2025
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
string::npos in C++ with Examples
Last Updated: 23 July 2025
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: 23 July 2025
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
Different ways to copy a string in C/C++
Last Updated: 23 July 2025
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
Check if a String can be converted to Pangram in K changes
Last Updated: 11 July 2025
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
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
DSA
C-String-Question
cpp-strings-library
String find() in C++
Last Updated: 11 July 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
std::stol() and std::stoll() Functions in C++
Last Updated: 11 July 2025
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
<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
strstr() in C/C++
Last Updated: 05 June 2026
strstr() is a predefined C/C++ string function used to find the first occurrence of one string inside another string. It is declared in the string.h (or cstring) header fi...
read more
C++
cpp-strings-library
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
1
2
3
4