Courses
Sale
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
C++
3.8K+ articles
C Language
1.3K+ articles
cpp-array
174+ articles
C-Pointers
65+ articles
Pointers
33+ articles
pointer
20+ articles
C-Pointer Basics
10+ articles
cpp-double-pointer
5+ articles
cpp-pointer
97 posts
Recent Articles
C++ Basics & Program Structure Interview Questions
Last Updated: 27 August 2025
C++ is a structured and object-oriented language used in systems programming, game development, competitive coding. 1. How does C++ enable both high-level and low-level pr...
read more
cpp-pointer
C++
Interview Prep
Reverse Array using Pointers in C++
Last Updated: 19 June 2026
Reversing an array means rearranging its elements so that the first element becomes the last, the second becomes the second last, and so on.Uses two pointers to swap eleme...
read more
C++
cpp-array
cpp-pointer
Risks of Using Raw Pointers in C++
Last Updated: 31 July 2025
In C++, raw pointers hold memory addresses and provide direct control over memory. However, improper use can lead to problems like memory leaks, crashes, and security issu...
read more
C++
cpp-pointer
std::make_shared in C++
Last Updated: 23 July 2025
In C++, std::make_shared() is a function that returns a shared pointer to the object of specific type after dynamically creating it. It offers a safer and more efficient w...
read more
C++
cpp-pointer
Dynamic Memory Allocation
cpp-memory-management
How to Avoid Memory Leaks When Using a Vector of Pointers to Dynamically Allocated Objects in C++?
Last Updated: 23 July 2025
In C++, managing memory properly is very important to avoid memory leaks, especially when working with dynamically allocated objects. When using a std::vector of pointers ...
read more
C++
Picked
STL
cpp-pointer
cpp-vector
Is std::unique_ptr<T> Required to Know the Full Definition of T?
Last Updated: 23 July 2025
In C++, a common question that arises among developers is: Does std::unique_ptrT require the full definition of T to function correctly? The straightforward answer is yes,...
read more
C++
Picked
STL
cpp-pointer
Difference Between Pointers and Array Notations in C++
Last Updated: 23 July 2025
In C++, pointers and array notations are two ways using which we work with arrays and memory for accessing the data. They have distinct behaviours and are used in differen...
read more
C++ Programs
C++
Picked
cpp-array
cpp-pointer
CPP Examples
Difference Between *& and **& in C++
Last Updated: 23 July 2025
In C++, the*(pointer to reference) and**(pointer to pointer reference)symbols are used in the context of pointers and references for manipulating memory addresses and deal...
read more
C++ Programs
C++
Picked
cpp-references
cpp-pointer
C++-References
cpp-double-pointer
CPP Examples
misc-cpp
Dangling Pointers in C++
Last Updated: 20 July 2026
A dangling pointer is a pointer that refers to a memory location that is no longer valid. Dereferencing such a pointer results in undefined behavior, which may lead to cra...
read more
C++ Programs
C++
Picked
cpp-pointer
CPP Examples
How to Return a Pointer from a Function in C++?
Last Updated: 23 July 2025
In C++, we can return a pointer from a function which is useful when we want to return large data structures that cannot be returned by value. However, it must be done car...
read more
C++ Programs
C++
Picked
cpp-pointer
CPP-Functions
CPP Examples
How to use const with Pointers in C++?
Last Updated: 23 July 2025
In C++, the const keyword is used as a type qualifier for defining read-only (immutable) objects that cannot be modified anywhere in their lifetime. It can be used in seve...
read more
C++ Programs
C++
Picked
cpp-pointer
C++-const keyword
CPP Examples
How to Access Vector Methods from Pointer to Vector in C++?
Last Updated: 23 July 2025
In C++, we can create a pointer that points to the object of vector type. In this article, we will learn how to access member functions of std::vector from a pointer to th...
read more
C++ Programs
C++
Picked
cpp-pointer
cpp-vector
CPP Examples
How to Create a Pointer to a Function in C++?
Last Updated: 23 July 2025
In C++, a function pointer is a variable that stores the address of a function that can later be called through that function pointer. It is useful for passing functions a...
read more
C++ Programs
C++
Picked
cpp-pointer
CPP-Functions
CPP Examples
Array of Pointers to Strings in C++
Last Updated: 23 July 2025
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
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
1
2
3
4
5
6
7
✕