Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
Computer Science Fundamentals
1.5K+ articles
STL
1.3K+ articles
cpp-vector
375+ articles
CPP-Library
254+ articles
cpp-pointer
96+ articles
cpp-template
39+ articles
cpp-references
17 posts
Recent Articles
Popular Articles
Passing a Vector to Constructor in C++
Last Updated: 05 April 2025
Just like any other data, we can also pass a vector to a constructor of the desired class. We can pass it by value or by reference. What we do with it depends on our requi...
read more
Misc
C++
cpp-references
cpp-vector
reference_wrapper in C++
Last Updated: 03 December 2019
std::reference_wrapper is a class template that wraps a reference in a copy constructible and copy assignable object or reference to function of type T. Instances of std:...
read more
Misc
C++
CPP-Library
cpp-references
is_lvalue_reference Template in C++
Last Updated: 19 November 2018
The std::is_lvalue_reference template of C++ STL is used to check whether the type is a lvalue reference type or not. It returns a boolean value showing the same.Syntax: t...
read more
Misc
C++
STL
CPP-Library
cpp-references
cpp-template
is_rvalue_reference Template in C++
Last Updated: 19 November 2018
The std::is_rvalue_reference template of C++ STL is used to check whether the type is a rvalue reference type or not. It returns a boolean value showing the same.Syntax:te...
read more
Misc
C++
STL
CPP-Library
cpp-references
Can C++ reference member be declared without being initialized with declaration?
Last Updated: 26 April 2021
To many readers, this might sound the same thing, i.e. class_type *var = NULL;*var = some_work;is same asclass_type *var = some_work;But in actual, it is not. When the de...
read more
Technical Scripter
Programming Language
C++
Technical Scripter 2018
GFacts
cpp-references
Pointers and References in C++
Last Updated: 11 January 2024
In C++ pointers and references both are mechanisms used to deal with memory, memory address, and data in a program. Pointers are used to store the memory address of anothe...
read more
Misc
C++
cpp-references
cpp-pointer
Different ways to use Const with Reference to a Pointer in C++
Last Updated: 04 April 2020
Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one: Pointers are used to store the address of variables or a...
read more
C++ Programs
C++
cpp-references
cpp-pointer
C++-const keyword
Advanced Pointer
Why do we need reference variables if we have pointers
Last Updated: 01 December 2021
Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be de referenced with * operator to access the memory location it point...
read more
C Language
C++
Picked
pointer
cpp-references
cpp-pointer
C-Pointers
Pointers
C++-References
References
C-Advanced Pointer
Advanced Pointer
C-Pointer Basics
Different types of range-based for loop iterators in C++
Last Updated: 16 September 2021
Range-Based 'for' loops have been included in the language since C++11. It automatically iterates (loops) over the iterable (container). This is very efficient when used w...
read more
C++
cpp-iterator
cpp-references
Loops & Control Structure
Return by reference in C++ with Examples
Last Updated: 01 August 2020
Pointers and References in C++ held close relation with one another. The major difference is that the pointers can be operated on like adding values whereas references are...
read more
C++
return
cpp-references
lvalues references and rvalues references in C++ with Examples
Last Updated: 02 September 2021
Prerequisites: lvalue and rvalue in C++, References in C++“l-value” refers to a memory location that identifies an object. "r-value” refers to the data value that is store...
read more
Misc
C++
cpp-references
C++-References
Pointers vs References in C++
Last Updated: 11 October 2024
Prerequisite:Pointers, ReferencesC and C++ support pointers, which is different from most other programming languages such as Java, Python, Ruby, Perl and PHP as they only...
read more
C Language
C++
Computer Science Fundamentals
cpp-references
cpp-pointer
When Do We Pass Arguments by Reference or Pointer in C++?
Last Updated: 25 January 2024
In C++, we can pass arguments to a function as a value, reference (or pointer). Each method has its unique benefits and uses.In this article, we will discuss the applicati...
read more
C++
Picked
Geeks Premier League
cpp-references
cpp-pointer
CPP-Functions
Geeks Premier League 2023
Difference Between *& and **& in C++
Last Updated: 28 May 2024
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
Why Can't I Make a Vector of References?
Last Updated: 22 July 2024
In C++, the Standard Template Library (STL) provides a robust and versatile collection of containers, with std::vector being one of the most commonly used. However, you ma...
read more
C++
Picked
STL
cpp-references
cpp-vector
1
2
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 !