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.2K+ articles
Misc
7.7K+ articles
C++
3.7K+ articles
Strings
2.1K+ articles
STL
1.3K+ articles
CPP-Functions
619+ articles
CPP-Library
254+ articles
cpp-strings-library
46+ articles
cpp-stringstream
12+ articles
cpp-string
157+ posts
Recent Articles
Popular Articles
How to Compare Two Substrings in a Character Array in C++?
Last Updated: 23 July 2025
In C++, character arrays are used to store a sequence of characters also known as strings. A Substring is a continuous sequence of characters within a string. In this arti...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
substring
CPP Examples
How to Split a String Based on Empty/Blank Lines in C++?
Last Updated: 23 July 2025
In C++, strings are objects that represent a sequence of characters and we can break this string into a new line using the '\n' escape sequence. In this article, we will l...
read more
C++ Programs
C++
Picked
cpp-string
cpp-strings
CPP Examples
toupper() in C++
Last Updated: 23 July 2025
In C++, the toupper()function converts a lowercase alphabet to an uppercase alphabet. It is a library function defined inside the ctype.hheader file. If the character pass...
read more
C++
Picked
cpp-string
CPP-Functions
CPP Examples
Why is Conversion From String Constant to 'char*' Valid in C but Invalid in C++?
Last Updated: 23 July 2025
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
C++ Programs
C++
Picked
cpp-string
cpp-pointer
C-Pointers
C-String
CPP Examples
How to Create a Stack of Strings in C++?
Last Updated: 23 July 2025
In C++, Stacks are a type of container adaptor with a LIFO(Last In First Out) type of working, where a new element is added at one end (top) and an element is removed from...
read more
C++ Programs
C++
Picked
STL
cpp-string
cpp-stack
CPP Examples
How to Read a File Character by Character in C++?
Last Updated: 23 July 2025
In C++, file handling is used to store data permanently in a computer. Using file handling we can store our data in secondary memory (Hard disk). In this article, we will ...
read more
C++ Programs
C++
Picked
cpp-string
cpp-file-handling
CPP Examples
How to Split a String into an Array in C++?
Last Updated: 23 July 2025
In C++, splitting a string into an array of substrings means we have to parse the given string based on a delimiter and store each substring in an array. In this article, ...
read more
C++ Programs
C++
Picked
cpp-string
cpp-array
substring
cpp-strings
CPP Examples
How to Initialize Vector of Char Arrays in C++?
Last Updated: 23 July 2025
In C++, a vector is a dynamic array that can grow and shrink in size. A char array is a sequence of characters, typically used to represent strings. In this article, we wi...
read more
C++ Programs
C++
Picked
STL
cpp-string
cpp-array
cpp-vector
CPP Examples
How to Parse Mathematical Expressions in a C++ String?
Last Updated: 23 July 2025
In C++, strings are sequences of characters stored in a char array. Strings are used to store words and text. We can also store mathematical expressions in this string. In...
read more
C++ Programs
C++
Picked
cpp-string
cpp-operator
CPP Examples
How to Swap Two Strings Without Using Third String in C++?
Last Updated: 23 July 2025
In C++, a string is a sequence of characters. Swapping two strings typically involves using a third string as temporary storage. However, it’s possible to swap two strings...
read more
C++ Programs
C++
Picked
STL
cpp-string
CPP Examples
How to Match a Pattern in a String in C++?
Last Updated: 23 July 2025
In C++, strings are sequences of characters stored in a char array. Matching a pattern in a string involves searching for a specific sequence of characters (the pattern) w...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Concatenate Multiple Strings in C++?
Last Updated: 23 July 2025
In C++, to concatenate multiple strings means we need to combine two or more strings into a single string. In this article, we will learn how to concatenate multiple strin...
read more
C++ Programs
C++
Picked
cpp-string
CPP Examples
How to Define a Static Data Member of Type const std::string?
Last Updated: 23 July 2025
In C++, static data members are members that exist independently of any object of the class. A static data member is shared by all objects of the class, meaning there is o...
read more
C++ Programs
C++
Picked
cpp-data-types
cpp-string
C++-Class and Object
CPP-OOPs
CPP Examples
How to Reverse a String in Place in C++?
Last Updated: 23 July 2025
In C++, reversing a string is a basic operation in programming that is required in various applications, from simple and complex algorithms. Reversing a string in place in...
read more
C++ Programs
C++
Picked
STL
cpp-string
CPP Examples
How to Convert an Enum to a String in C++?
Last Updated: 23 July 2025
In C, an enumeration is a user-defined data type whose members can be assigned some integer values. In this article, we are going to discuss how to convert an Enum to a St...
read more
C++ Programs
C++
Picked
cpp-string
cpp-map
C++ Conversion Programs
CPP Examples
1
2
3
4
...
11