answersLogoWhite

0

Use of double pointer

Updated: 12/19/2022
User Avatar

Wiki User

15y ago

Best Answer

A double pointer has two basic meanings. One is ofa pointer to a pointer, where changing the value ofdouble pointer will result in the original pointer being changed. Another is that of a two-dimentional array, such as a matrix, or a list of char* (e.g. in main when you use argv).

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Use of double pointer
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the applications of double pointer in c?

insert or delete values both side.so use double pointer


Why is double pointer used?

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;}


Define pointer to pointer in c?

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;


Which computer mouse property to use to set double click speed?

Buttons and pointer options


Why do you use double star '' in initializing a variable in class?

The double star (**) notation is not specific to initializing a variable in a class. It is simply a double indirect reference to an object.float myFloat; // an objectfloat *myFloatPtr; // a pointer to an objectfloat **myFloatPtrPtr; // a pointer to a pointer to an objectmyFloat = 123.456; // initialize an objectmyFloatPtr = &myFloat; // initialize a pointer to an objectmyFloatPtrPtr = myFloatPtr; // initialize a pointer to a pointer to an objectmyFloat; // refer to an object*myFloatPtr; // refer to an object through a pointer**myFloatPtrPtr; // refer to an object through a pointer to a pointer*myFloatPtrPtr; // refer to the value of the pointer to the objectDouble pointer notation is used where the caller intends that one of its own pointers need to be modified by a function call, so the address of the pointer, instead of the address of the object, is passed to the function.An example might be the use of a linked list. The caller maintains a pointer to the first node. The caller invokes functions to search, add, and remove. If those operations involve adding or deleting the first node, then the caller's pointer has to change, not the .next pointer in any of the nodes, and you need the address of the pointer to do that.


What determines the type of formatting that will be applied if you double-click at the pointer location on the page?

The shape attached to the pointer


What is double pointer in c?

example: double num = 12.34; double *numptr = # double **numptrptr = &numptr;


Why you use an array of pointer to pointer?

because u freakin can


C program pointers to pointers examples?

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;


What does pointer to pointer finger mean?

yea that's why its called the point FINGER


Does having a void double pointer make sense in C?

No, 'void *' and 'double *' are ok; 'void double *' is syntax error.On the other hand 'void **p' is totally correct: p holds the address of a generic pointer.


What is pointer why you use 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.