Skip to content

Tag Archives: Pointers

Given a sorted doubly linked list of N nodes and an integer X, the task is to find the sum of three nodes in the… Read More
Dangling pointer: A pointer pointing to a memory location that has been deleted (or freed) is called a dangling pointer. There are three different ways… Read More
Function Pointer: A function pointer, or a subroutine pointer, or a procedure pointer, is a pointer that points to a function. In simple words, it… Read More
An array of pointers is an array of pointer variables. It is also known as pointer arrays. We will discuss how to create a 1D… Read More
The following article discusses the way to return a local variable created inside a function, which can be done by returning a pointer to the… Read More
In C/ C++, like normal data pointers(int *, char *, etc), there can be pointers to functions. Every function created in a program gets an… Read More
Given a sorted doubly linked list and an integer X, the task is to print all the quadruplets in the doubly linked list whose sum… Read More
In this article, we will discuss the differences between constant pointer, pointers to constant & constant pointers to constants. Pointers are the variables that hold… Read More
In this article, the differences between passing “pointer to pointer” and “address of pointer” to a function. In C or C++ Programming Language, it is… Read More
Pointer is a data type that stores the address of other data types. The pointer of Base Class pointing different object of derived class: Approach:… Read More
Structure Pointer: It is defined as the pointer which points to the address of the memory block that stores a structure is known as the… Read More
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
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