answersLogoWhite

0

How are we going to use pointer in a program?

Updated: 8/21/2019
User Avatar

Wiki User

8y ago

Best Answer

A pointer is a variable used specifically to store a memory address. We say the variable "points to" the memory address because we can dereference the pointer to access the value stored at that address. The pointer's type determines how that dereferenced value will be interpreted. Being a variable, we can change the stored address and thus change which value we point at. This makes it possible for the same variable to refer to different objects in memory, which includes other pointer variables.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How are we going to use pointer in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a presentation pointer in a computer program?

A presentation pointer is a light (usually red) that you use so you don't have to touch the object the presentation is protuding of off.


What is program counter?

Synonym for Instruction Pointer.


What is meant by an pointer in c program?

Pointer is like variable address the members in memory shell


What is the difference between stack pointer and program counter?

The stack pointer keeps track of the top of the stack used by the current thread. The program counter keeps track of the next instruction in a program. Both are registers and both store a memory address.


How does java secures the code?

java is securejava uses the pointer internally. programer cannot use the pointer in our program explicitly. due to use of pointers information may be lostex-int *p;int a=56;int b=98;p=&a;p=&b;in above program first time pointer points the a value and in next line p points the b value, so here a information is lost


What is the purpose of pointer in C?

the purpose of pointer in c for saving the memory space.,and reduce the length and complexity of the program


What is the purpose of the pointer?

A pointer stores a relative memory link to a place where a variable's data is stored. This mechanism allows the OS to allocate memory to programs as necessary. It is considered "dangerous" to use pointers, as a single pointer can cause a program to crash, although these are exclusively programmer's error.


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 difference bw function pointer and function of pointer?

function pointer is a variable that hold the address of any function which declared in the program but function pointer is the array of the function that accept the run time size of the function.


Why you use an array of pointer to pointer?

because u freakin can


What is null pointer assignment?

This error message means that somewhere in your program you have used a pointer-varible containing NULL-value. (Within an actual OS it with stop the program immediately, but in MS-DOS it doesn't.)


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.