Topics
C++ Pointer
About this topic: Articles tagged __TAG__
Showing 18 articlesRelated tags
Topics
Articles
Showing 18 articles
How-tos
How to Use Smart Pointers in C++
This article introduces how to use smart pointers in C++. Learn about std::unique_ptr, std::shared_ptr, and std::weak_ptr, and discover how they can simplify memory management in …
↗
How-tos
How to Check if Pointer Is NULL in C++
This article introduces how to check if a pointer is null in C++. Learn various methods, including using if statements, pointer arithmetic, and the ternary operator. Each method is …
↗
How-tos
How to Create Vector of Pointers in C++
This article demonstrates how to create a vector of pointers in C++. Learn about vectors, pointers, memory management, and smart pointers in C++. With clear examples and …
↗
How-tos
How to Access Member Functions From Pointer to a Vector in C++
This article demonstrates how to access member functions from a pointer to a vector in C++. Learn various methods, including using direct pointers, iterators, and loops, with clear …
↗
How-tos
How to Use const Qualifier With Pointers in C++
This article introduces how to use the const qualifier with pointers in C++. Learn about pointer types, best practices, and how to enhance your C++ code's safety and clarity by …
↗
How-tos
Void Pointer in C++
Explore the concept of void pointers in C++ with this comprehensive guide. Learn what void pointers are, how to use them, their advantages, and common mistakes to avoid. Discover …
↗
How-tos
Dangling Pointers in C++
Learn about dangling pointers in C++, their causes, and how to avoid them. This article covers practical methods like using smart pointers and setting pointers to nullptr to …
↗
How-tos
How to Swap Two Numbers Using Pointers in C++
The swap pointer operator is denoted by two asterisks. It takes two operands and assigns them to each other's respective locations. The left-hand operand is given to the right-hand …
↗
How-tos
Declaration and Uses of unique_ptr in C++
In this article, we will learn about the declaration and use of a unique_ptr in C++. We will learn about the various declarations and the features that the unique_ptr provides. As …
↗
How-tos
How to Pass Pointer by Reference in C++
This article introduces how to pass pointer by reference in C++
↗
How-tos
How to Return a Pointer in C++
This article demonstrates how to return a pointer from function in C++
↗
How-tos
How to Understand Smart Pointers in C++
This article discusses the smart pointers in C++, its uses, types, and implementations.
↗
How-tos
How to Use the this Pointer in C++
This tutorial briefly introduces this pointer and its need and uses in C++. It further explains the difference between this and *this with the help of examples.
↗
How-tos
How to Dereference Pointers in C++
This tutorial provides a brief discussion on how to dereference a pointer in C++.
↗
How-tos
Functionality and Difference Between *& and **& in C++
In this guide, we are going to learn the difference and the functionality of *& and **& in C++.
↗
How-tos
Pointer to an Array in C++
This article introduces how to use a pointer to an array in C++
↗
How-tos
The Difference Between Pointers and Array Notations in C/C++
Pointers and arrays are without a doubt one of the most important and complex aspects of C++, they provide support for linked lists and dynamic memory allocation, and they allow …
↗
How-tos
Function Pointer to Member Function in C++
This article provides an explanation on how function pointer to member functions are implemented in C++. Examples are provided to explain which method pointers can be implemented …
↗
No articles found
Try clearing the filters.