Skip to content

Tag Archives: Pointers

Given an array arr[] of size N and an integer K, the task is to right rotate the array K times. Examples:  Input: arr[] =… Read More
A pointer is a variable that stores the memory address of an object.  The pointer then simply “points” to the object. The type of the… Read More
What is Array? An array is the collection of multiple items of the same type stored contiguous memory locations. The position of each element can… Read More
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

Start Your Coding Journey Now!