answersLogoWhite

0

Define Dynamic pointer with example

User Avatar

Anonymous

14y ago
Updated: 8/18/2019

Dynamic Pointer is a pointer which points to diffrent places,not at once but at diffrent intervals it might be pointing to some place at once then after certain code executes it might change its position to somewhere else .

Example

int x,y;

int *p=&x;/* pointer p points to the address of x*/

p=&y;/*pointer P now points to the addres of y*/

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Define pointer in C?

Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.


Different types of pointers in c language?

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


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;


Define pointer star?

Pointer Stars are stars that are used to pinpoint other areas in the sky, such as constellations.


Why pointer is not an object?

A pointer in itself is not an object, because it is not an instance of a class. Of course you can define a class which has only one member, which is a pointer. class Pointer { public void *ptr; }; Pointer p, q, r;


What is the standard used to define one kilogramme?

to control the pointer


Is a pointer and an English pointer the same?

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


What is pointer operator?

For example: [] * -> + - ++ -- = += -= & == < <= > >= !


Where string is stored on Heap or Stack in java?

A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.


What is triple pointer?

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


What is dynamic culture as define in social?

That Culture Always Changes


Pointer to pointer in c?

Usable. A prominent example is param argv of function main.