answersLogoWhite

0

Why is double pointer used?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

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

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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;


What are the applications of double pointer in c?

insert or delete values both side.so use double pointer


What is a double ended queue?

A double ended queue, or deque, is a queue in which you can access or modify both the head and the tail. The front pointer can be used for insertion (apart from its usual operation i.e. deletion) and rear pointer can be used for deletion (apart from its usual operation i.e. insertion)


Use of double pointer?

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).


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;


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 is the Hebrew word for pointer?

A pointer, used in business or teaching = מַצבִּיעַ (matzbia)the specialty pointer used to read the torah = יד (yad)


What does pointer to pointer finger mean?

yea that's why its called the point FINGER


What is the pointer called that is used when reading the Torah?

The pointer that is used when reading the Torah is called a yad


What is the pointer used in bar mitzvah called?

Clarification is needed. The pointer used isn't specific to the Bar Mitzvah ceremony, it is the pointer used whenever the Torah scroll is read. The pointer itself is called a 'yad' which means 'hand'.