Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C Language
1.8K+ articles
C/C++ Puzzles
187+ articles
cpp-array
173+ articles
C-Pointers
65+ articles
Pointers
33+ articles
pointer
20+ articles
In C++, an array of a string is used to store multiple strings in contiguous memory locations and is commonly used when working with collections of text data. In this arti...
read more
C++ Programs
C++
Picked
cpp-array
cpp-pointer
cpp-strings
CPP Examples
Asmart pointerin C++ simulates a pointer while also providing automatic garbage collection as it deallocates or frees associated memory when it goes out of scope, which he...
read more
C++ Programs
C++
Picked
cpp-pointer
CPP Examples
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
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
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
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
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
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
In C++, pointers can be used for various purposes such as storing the address of a variable, allocated objects on the heap, passing functions to other functions, iterating...
read more
C++ Programs
C++
Picked
cpp-pointer
CPP Examples
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
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
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
In C++, managing memory properly is very important to avoid memory s, especially when working with dynamically allocated objects. When using a std::vector of pointers ...
read more
C++
Picked
STL
cpp-pointer
cpp-vector
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
In C++, raw pointers are variables that hold memory addresses of other variables or dynamically allocated memory. While raw pointers provide powerful low-level control ove...
read more
C++
cpp-pointer
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 !