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
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
C-Library
120+ articles
cpp-containers-library
92 articles
cpp-math
50 articles
CPP-complex
15 articles
CPP-Library
240+ posts
Popular Articles
Recent Articles
Vector erase() in C++ STL
Last Updated: 16 January 2025
In C++, vector erase() is a built-in function used to remove one or more elements from a vector present at a specific position or within a s
...read more
STL
CPP-Library
CPP-Functions
cpp-vector
cpp-advanced
C++
snprintf() in C
Last Updated: 07 March 2025
In C, snprintf() function is a standard library function that is used to print the specified string till a specified length in the specifie
...read more
CPP-Library
C Language
C++
C-Library
Vector push_back() in C++ STL
Last Updated: 27 December 2024
In C++, the vector push_back() is a built-in method used to add a new element at the end of the vector. It automatically resizes the vector
...read more
STL
CPP-Library
CPP-Functions
cpp-vector
C++
Similar Topics
DSA
22.3k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
C-Library
120+ articles
cpp-containers-library
92+ articles
cpp-math
50+ articles
CPP-complex
15+ articles
Substring in C++
Last Updated: 11 January 2025
The substring function is used for handling string operations like strcat(), append(), etc. It generates a new string with its value initial
...read more
CPP-Library
cpp-string
C Language
C++
C-String
C-Library
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
rand() and srand() in C++
Last Updated: 11 January 2025
The std::rand() in C++ is a built-in function that is used to generate a series of random numbers. It will generate random numbers in the r
...read more
STL
CPP-Library
C++
cpp-random
strtok() and strtok_r() functions in C with examples
Last Updated: 07 June 2023
C provides two functions strtok() and strtok_r() for splitting a string by some delimiter. Splitting a string is a very common task. For exa
...read more
Technical Scripter
CPP-Library
cpp-string
C++
<bits/stdc++.h> in C++
Last Updated: 11 January 2025
It is basically a header file that includes every standard library. In programming contests, using this file is a good idea, when you want t
...read more
CPP-Library
C Language
C++
Iterators in C++ STL
Last Updated: 24 October 2024
Aniterator in C++is a pointer-like object that points to an element of the STL container. They are generally used to loop through the conten
...read more
STL
CPP-Library
C++
cpp-iterator
Converting Number to String in C++
Last Updated: 11 January 2025
In C++, converting integers to strings or converting numbers to strings or vice-versa is actually a big paradigm shift in itself. In general
...read more
CPP-Library
cpp-string
C Language
C++
cpp-stringstream
Sort Vector of Pairs in Ascending Order in C++
Last Updated: 17 December 2024
Sorting a vector of pairs in ascending order means arranging the elements in such a way that first pair is lesser than second pair, second p
...read more
Sorting
STL
CPP-Library
cpp-vector
C Language
C++
C++ Programs
DSA
CPP Examples
Convert String to int in C++
Last Updated: 11 October 2024
Converting a string to int is one of the most frequently encountered tasks in C++. As both string and int are not in the same object hierarc
...read more
CPP-Library
cpp-string
C++
cpp-stringstream
sort() in C++ STL
Last Updated: 10 January 2025
In C++, sort() is a built-in function used to sort the given range in desired order. It provides a simple and efficient way to sort the data
...read more
STL
CPP-Library
C Language
C++
cpp-algorithm-library
Unordered Map in C++ STL
Last Updated: 03 March 2025
In C++, unordered_map is an unordered associative container that stores data in the form of unique key-value pairs. But unlike map, unordere
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-unordered_map
cpp-unordered_map-functions
How to split a string in C/C++, Python and Java?
Last Updated: 11 January 2025
Splitting a string by some delimiter is a very common task. For example, we have a comma-separated list of items from a file and we want ind
...read more
Strings
Java
Python
CPP-Library
cpp-string
C Language
C++
Java-String-Programs
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
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 !