answersLogoWhite
Software and Applications (non-game)
Computer Programming
Java Programming
C Programming

What are the specific uses of pointer to pointer?

8910

Top Answer
User Avatar
Wiki User
Answered
2007-07-09 11:20:00
2007-07-09 11:20:00

A pointer to pointer variable can hold the address of another pointer variable. The Syntax is as follow: type** variable; Example:: //function prototype void func(int** ppInt); int main() { int nvar=2; int* pvar=&nvar; func(&pvar); .... return 0; }


One more important use of pointer-to-pointer is for creating multi-dimensional array dynamically, see See the related links.

001
๐Ÿฆƒ
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0

Related Questions


No. Each laser pointer uses a laser that emits a specific color. the only way to get a different color would be to get a different laser.


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


A pointer to pointer has many uses, one of the simplest being 2D arrays (matrices). Compacting garbage collectors also often employ pointer pointers.


Accessing data by address.


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


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



The pointer a person uses in a synagogue is called a Yad. They use it to read from the Torah. It is also used during Bar Mitzvahs.


Yes. A built-in pointer uses the built-in increment operator. The implementation of this operator increments the pointer variable's value by the length of the pointer (in bytes). The pointer's length is determined by the underlying type of the pointer itself, not the type of the object being referred to. Thus a built-in pointer may refer to a user-defined type (struct or class).


A NULL pointer is a pointer variable that stores the value zero. Although there is a memory address at offset 0, this value is reserved to indicate that the pointer is not pointing at any valid memory. A void pointer is a pointer variable that has no specific type. For instance, int * p; tells the compiler that p will point to a memory location that will be treated as if it were an int type (even if it is a char, or some other type), whereas void * p; tells the compiler that the memory being pointed at has no specific type, and that the type will be determined at runtime by casting the pointer to the appropriate type. This allows the pointer to point to anything, including NULL. An int pointer can also point at anything, but its type is known at runtime and will be treated as such at runtime. The type of a void pointer can only be determined at runtime.


The void type has only one purpose: to specify the return type of a function that has no return value. In this case void simply means no type. The only other usage is when used as a pointer to void (void*), which simply means a pointer type that can refer to any type of object. If the pointer is non-null, it must be cast to a specific type before it can be dereferenced.


AnswerI take it you are using some version of c,c++,visualC etc etc. One thing that is standard is pointers. A pointer is the address of a memory space that holds information in that specific space. By referencing the pointer in your code, you can print out that specific bit of information that the poiner is actually pointing to. Hope this helps


... are usable. void pointer (generic pointer) : a special type of pointer which point to some data of no specific types. void *p; null pointer : a special type of pointer which point nowhere. it is usually used to check if a pointer is pointing to a null or free the pointer during deallocation of memory in dynamic memory allocation; it is define by using the predefine constant NULL int *p=NULL; wild pointer : uninitialized pointer. it hold a garbage value. i.e it is not pointing to any memory location yet. dangling pointer: pointer pointing to a destroyed variable. it usually happen during dynamic memory allocation when the object is destroyed but not free and the pointer is still pointing to the destroy object.


In computer terminology, pointer is a programming language. It is an important part of C language. Uses of pointers: C pointer, C arrays, C linked list, memory-mapped hardware, Pass-by-address using pointers, Dynamic memory allocation.


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.


Measurements of specific densities.


dangling pointer is a pointer


A file pointer is an opaque object that refers to a file. Opaque means that you should not attempt to delve into its specific value, other than to use it as a file pointer. FILE *fp; /* fp is the file pointer */ fp = fopen("somefile.txt"); if (fp == NULL) ...{exception}... fprintf(fp, "Hello somefile.txt"); fclose(fp);


The automatic uses ATF+4The manual uses a specific manual transmission fluid.The automatic uses ATF+4The manual uses a specific manual transmission fluid.


There is no specific key. Put your mouse pointer on the sentence and triple-click.


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;



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.