Skip to content

Tag Archives: Pointers

Prerequisite: Array BasicsIn C/C++, multidimensional arrays in simple words as an array of arrays. Data in multidimensional arrays are stored in tabular form (in row… Read More
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant,… Read More
Pointers store the address of variables or a memory location. Pointers are a symbolic representation of addresses. They enable programs to simulate call-by-reference as well… Read More
Prerequisite: Classes, Constructors, Initializer list In this article, we will discuss the order of execution in the initializer list in C++. Generally, the order of… Read More
In C++, cout shows different printing behaviour with character pointers/arrays unlike pointers/arrays of other data types. So this article will firstly explain how cout behaves… Read More
Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be de referenced with * operator to access… Read More
Prerequisite: Pointer in C and C++, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable.… Read More
Pointers variables are also known as address data types because they are used to store the address of another variable. The address is the memory… Read More
Given a sorted array arr of size N, the task is to reduce the array such that each element can appear at most two times.… Read More
Prerequisite: Pointers in C, Double Pointer (Pointer to Pointer) in CA pointer is used to point to a memory location of a variable. A pointer… Read More
Pointer: A pointer is a variable which contains the address of another variable, i.e., address of the memory location of the variable. Like any variable… Read More
NULL pointer in C At the very high level, we can think of NULL as a null pointer which is used in C for various… Read More
Pointer to an array: Pointer to an array is also known as array pointer. We are using the pointer to access the components of the… Read More
Pointers store address of variables or a memory location. Syntax: datatype *var_name; Example: pointer “ptr” holds address of an integer variable or holds address of… Read More
int const* int const* is pointer to constant integer This means that the variable being declared is a pointer, pointing to a constant integer. Effectively,… Read More

Start Your Coding Journey Now!