Computers

What are pointer to pointer?

345

Top Answer
User Avatar
Wiki User
Answered
2011-09-13 18:46:40
2011-09-13 18:46:40

A pointer only holds an address information (location) in the memory.

if a pointer holds points another pointer then it is a pointer to an other pointer.

Pointer holds an address in the memory so in that address there is an other location information that shows another location.

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0

Related Questions


Pointer is simply a variable that stores the memory address of another variable. Pointer to pointer means double pointer ,pointer that points to another pointer variable.

dangling pointer is a pointer

Pointer is a variable that is used to store the memory address of another variable. There are differenr types of pointers: NULL pointer THIS pointer VOID pointer NEAR pointer HUGE pointer FAR pointer WILD pointer

1. pointer to a constant means you can not change what the pointer points to 2. constant pointer means you can not change the pointer.

Pointer to Pointer is a double pointer, denoted by (**). Pointer stores the address of the variable and pointer to pointer stores the address of a pointer variable and syntax can be given as int **ptr2ptr;

Example: int x; -- integer int *px= &x; -- pointer to integer int **ppx= &px; -- pointer to pointer to integer int ***pppx= &ppx; -- pointer to pointer to pointer to integer

Double pointers are better known as pointer-to-pointer types. You use pointers to store the memory address of an object but when the object is itself a pointer, you need to use a pointer-to-pointer in instead. Pointer-to-pointer types are typically used when passing pointers into functions. Pointers allow you to pass objects to functions by reference but the pointer itself is passed by value. If you want to pass the pointer by reference, you need to pass a pointer-to-pointer.

A pointer points to another pointer in the same way that a pointer points to a non-pointer object. Start with a pointer to an object... int a; // the object int *pa = &a; // the pointer pa; // is the value of the pointer *pa; // is the value of the object Now, create a pointer to a pointer to an object int a; // the object int *pa = &a; // the first pointer int **paa = pa; // the second pointer a; // is the value of the object pa; // is the value of the first pointer *pa; // is the value of the object using the first pointer *paa; // is the value of the second pointer **paa; // is the value of the object using the second pointer And so on and so forth... Just don't forget to initialize each pointer along the way!

A Pointer is a Variable that holds a memory address, usually the location of another variable in memory. A pointer to pointer is known as double pointer.

pointer is the variable that holds the address of another variable

Double (**) is used to denote the double pointer. As we know the pointer stores the address of variable, Double pointer stores the address of any pointer variable. Declaration : int **ptr2Ptr;

Void pointer can hold the address of any kind of pointer. But we can't operate on void pointer

Double pointer is a pointer to a pointer. So you can work with the double pointer as you work with a single one.Or you might mean 'pointer to double', eg:void clear_double (double *dp){*dp = 0;}

As the name suggests Pointer is used to point towards something ,here in this case it points to another variable and stored at a memory location. Pointer is a variable that stores address of another variable. Different Types of pointers are: 1)Dangling Pointers 2)NULL Pointers 3)This Pointer 4)Generic Pointer 5)Near Pointer 6)Far Pointer

The pointer that points to a block of memory that does not exist is called a dazzling pointer or wild pointer

No. Pointer is pointer and middle is middle. If anyone told you pointer = middle, he/she was making fun of you.

Pointers come in different breeds. For example: German Short Haired Pointer and English Pointer.

Pointer is a variable that stores the address of another variable. Since pointer is also akind of variable, thus pointer itself will be stored at a different memory location.

a speedometer pointer is were there is a pointer were basically it points what speed your in whilst your driving

A pointer is a variable like any other. As such, it has memory allocated to it. It is similar to an int in that they both store a value in their memory location. However, whereas an int value is interpreted as a whole number, a pointer's value is interpreted as a memory address. The pointer is said to "point to" the memory address it contains. The type of the pointer determines the type of the variable stored at that memory address. the following is a declaration of a pointer to an integer initialised with the value zero: int * p = new int(0); A pointer to a pointer is no different to an ordinary pointer, except the memory address it points to is that of another pointer. The following is an example of a pointer that points to the pointer we've just declared. int ** pp = p; Pointer-to-pointer variables are typically used whenever you need to pass a pointer by reference. All pointers are passed by value, so the memory address they contain is passed, not the pointer variable itself. To pass the pointer itself, you must pass a pointer to the pointer, which passes the memory address of the pointer. This then makes it possible to change the memory address stored in that pointer. Pointer-to-pointer variables are also used when declaring dynamic, multi-dimensional arrays. For instance, a 2-dimensional array requires a pointer-to-pointer to reference the array itself. This pointer points to a 1-dimensional array of pointers, each of which points to a 1-dimensional array of the actual variables in the array. Unlike a static multi-dimensional array, where the entire array occupies contiguous memory, a dynamic multi-dimensional array may not reside in contiguous memory. Pointer-to-pointer can be extended further to accommodate 3-dimensional arrays, and above. A 3D array requires a pointer-to-pointer-to-pointer, which points to a 1-dimensional array of pointer-to-pointer, each of which references a 2D array, as previously outlined.

the pointer has its on mounting spot on the front of the block when you bolt it on the pointer will be set

generic pointer is a pointer that can not be dereferenced i.e one type pointer can not be assigned to another type.


Copyright ยฉ 2020 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.