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
36.8K+ articles
DSA
20.7K+ articles
Misc
8.4K+ articles
C++
4.3K+ articles
Strings
2.9K+ articles
C++ Programs
2.1K+ articles
STL
1.3K+ articles
CPP-Functions
619+ articles
CPP-Library
254+ articles
cpp-strings-library
46+ articles
cpp-string
157+ posts
Recent Articles
Popular Articles
strcat() Function in C++
Last Updated: 04 April 2024
The strcat() function in C++ is a predefined function in the cstring header file that is used to concatenate two strings, by appending a copy of the source string to the e...
read more
C++
Picked
cpp-string
CPP-Functions
CPP Examples
Array of Pointers to Strings in C++
Last Updated: 21 March 2024
In C++, an array is a homogeneous collection of data that is stored in a contiguous memory location. We can store almost all types of data as array elements. In this artic...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
cpp-pointer
cpp-strings
CPP Examples
How to Convert String to Date in C++?
Last Updated: 22 March 2024
In C++, we generally store the date and time data in the form of the object of type std::tm. Sometimes, this data is stored inside a string object and we need to convert i...
read more
C++ Programs
C++
cpp-string
date-time-program
cpp-strings
How to Convert wstring to int in C++?
Last Updated: 22 March 2024
In C++,std::wstringis a type of string where each character is of a wide character type. These types of strings can be used to store the numerical strings which can then b...
read more
C++ Programs
C++
cpp-string
How to Extract a Substring from a Character Array in C++?
Last Updated: 27 March 2024
In C++, character arrays are used to store sequences of characters also known as strings. A substring is a part of a string that consists of a continuous sequence of chara...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Handle Unicode Strings in C++?
Last Updated: 03 April 2024
A Unicode string is a sequence of code points, where each code point is a unique integer representing a character in the Unicode standard.It is used to represent text data...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
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
C++ Escape Sequences
Last Updated: 03 June 2024
Escape sequences in C++ are characters or sequences of characters that can be used inside a string literal to represent some special characters. They are prefixed with a b...
read more
C++
Picked
cpp-string
CPP-Basics
CPP Examples
Reverse Prefix of Word in C++
Last Updated: 20 August 2024
Reversing a prefix of a word is a problem in which we are given a word and a character ch, we need to reverse the segment of the word that starts at the beginning of the w...
read more
C++ Programs
C++
cpp-string
CPP-DSA
UTF-8 to Wide Char Conversion in C++ STL
Last Updated: 18 July 2024
UTF - 8 is a variable-length encoding that represents Unicode characters using 1 to 4 bytes. It’s widely used for text storage and transmission due to its compactness and ...
read more
C++
Picked
STL
cpp-string
Why Should We Not Derive from C++ std::string Class?
Last Updated: 18 August 2024
In C++, we might sometimes think of deriving from the std::string class to use its existing functionality while adding our own enhancements. However, deriving from std::st...
read more
C++
Picked
STL
cpp-string
string::rbegin() and string::rend() in C++
Last Updated: 25 September 2024
The std::string::rbegin() and std::string::rend() functions in C++ are used to fetch the reverse iterators to the string. They are the member function of std::string and a...
read more
C++
cpp-iterator
STL
cpp-string
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
memcpy() in C++
Last Updated: 15 May 2025
C++ memcpy() function is a standard library function that is used to copy the specified number of bytes from one memory location to another memory location regardless of t...
read more
C++
cpp-string
CPP-Functions
1
2
3
4
...
11
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 !