Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-string
140+ articles
cpp-algorithm-library
80 articles
cpp-strings-library
45 posts
Popular Articles
Recent Articles
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 un
...read more
cpp-string
C++
cpp-strings-library
cpp-strings
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
...read more
Program Output
Strings
Algorithms
Technical Scripter
C++
C-String
cpp-strings-library
Technical Scripter 2020
DSA
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 lo
...read more
cpp-string
C++
cpp-strings-library
Picked
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Misc
2.1k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
cpp-string
140+ articles
cpp-algorithm-library
80+ articles
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 f
...read more
C++
cpp-strings-library
DSA
Memset in C++
Last Updated: 11 January 2025
Memset() is a C++ function that copies a single character for a specified number of times to the given bytes of memory. It is useful for fil
...read more
CPP-Library
CPP-Functions
C++
cpp-strings-library
cpp-memory-management
char* vs std:string vs char[] in C++
Last Updated: 15 November 2023
In this article, we are going to inspect three different ways of initializing strings in C++ and discuss differences between them.1. Using c
...read more
Misc
cpp-string
C++
cpp-strings-library
string at() in C++
Last Updated: 04 October 2024
The std::string::at() in C++ is a built-in function of std::string class that is used to extract the character from the given index of strin
...read more
STL
CPP-Functions
C++
cpp-strings-library
std::to_string in C++
Last Updated: 24 September 2024
In C++, the std::to_string function is used to convert numerical values into the string. It is defined inside string header and provides a s
...read more
STL
C++
cpp-strings-library
find() in C++ STL
Last Updated: 11 January 2025
In C++, the find() is a built-in function used to find the first occurrence of an element in the given range. It works with any container th
...read more
STL
C++
cpp-strings-library
std::string::insert() in C++
Last Updated: 11 January 2025
In C++, the string::insert() function is used insert the characters or a string at the given position of the string. It is the member functi
...read more
STL
CPP-Functions
C++
cpp-strings-library
std::string::append() in C++
Last Updated: 20 January 2025
The string::append() in C++ is used append the characters or the string at the end of the string. It is the member function of std::string c
...read more
STL
CPP-Functions
C++
cpp-strings-library
std::string::replace() in C++
Last Updated: 22 October 2024
The string::replace() function in C++ is used to replace a single or multiple characters from a given index. It is the member function of st
...read more
STL
CPP-Functions
C++
cpp-strings-library
string erase in C++
Last Updated: 23 April 2025
The string erase() function is a built-in function of the string class that is used to erase the whole or part of the string, shortening its
...read more
STL
CPP-Functions
C++
cpp-strings-library
std::string::compare() in C++
Last Updated: 11 January 2025
The string::compare() function in C++ is used to compare a string or the part of string with another string or substring. It is the member f
...read more
STL
cpp-string
CPP-Functions
C++
cpp-strings-library
std::string class in C++
Last Updated: 11 January 2025
C++ has in its definition a way to represent a sequence of characters as an object of the class. This class is called std:: string. The stri
...read more
STL
cpp-string
C Language
C++
cpp-strings-library
DSA
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
Last
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 !