answersLogoWhite

0

What is forwarding pointers?

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

A pointer is a programming tool that allows a value to be referenced. All data is allocated in memory and has a certain address attached to them. When you use a pointer, you are taking a value from an address called the reference. The original data is called the reference, and taking that value using a pointer is called dereferencing.

Example using Objective-C:

int anInt = 42; (anInt is stored in memory with the value of 42)

int *anIntPointer; (this is new datatype that wants to point to a certain address)

*anIntPointer = &anInt; (you are taking the pointer and dereferencing it to anInt. anytime you have a pointer [in this case denoted with an asterisk "*"], the reference will be noted with an ampersand "&")

Now there are also pointers to objects and structs that use an entirely different method, but same idea, the pointer grabs a referenced data value. This is especially valuable for referencing structures without having to reference every single member variable.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

By analogy, an electronic pointing device such as the TrackPoint used on ThinkPad notebook computers, and similar devices on computers from other manufacturers.

In computer science, a pointer is a programming language datatype whose value refers directly to ("points to") another value stored elsewhere in the computer memory using its address. Obtaining the value that a pointer refers to is called dereferencing the pointer. A pointer is a simple implementation of the general reference datatype (although it is quite different from the facility referred to as a reference in C++).

Pointers are so commonly used as references that sometimes people use the word "pointer" to refer to references in general; however, more properly it only applies to data structures whose interface explicitly allows it to be manipulated as a memory address. If you are seeking general information on a small piece of data used to find an object.

The pointing icon on a computer screen that users control with input devices such as computer mouse or joystick.

Pointer: A pointer is a programming language datatype whose value refers directly to another value stored elsewhere in the computer memory using its address.

A pointer is an object that contains the address of another object.

int a; /* an object of type integer */

int *pa; /* an object of type pointer to integer */

pa = &a; /* initialization of the pointer, pa now "points to" a */

pa; /* reference to the pointer's value */

*pa; /* reference to the object's value */

Arrays and pointers are closely related, but that is not within the scope of the question.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Pointer are variable which stores memory address of another variable. That is the definition of pointers. but if you want to see the proper usage of pointers you must visit some C Programming site.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Pointer are variable to what store only address.

Advantages of pointers are:

Easy to implement in tree, list.

Enable pass by references.

Allow resize of data structure

enable us to allocate memory!

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

A pointer is a variable which is used to store address of a variable. They are used to point to another variable.

eg:-


int *p; // creates a pointer of integer type

int num; // an integer variable

p=# //pointer variable p is assigned with address of num



This answer is:
User Avatar

User Avatar

Wiki User

7y ago

pointer is lwan variable whose value is address of another variable. i.e., direct address of memory allocation

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is forwarding pointers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is this sentence correct - forwarding this mail for your information?

It would be better to say, 'I am forwarding this mail, for your information.', or 'We are forwarding this mail for your information.'


What are void pointers?

They are pointers without type


What is IP forwarding?

IP forwarding enables one workstation to sit on two LANs and to act as a gateway forwarding IP packets from one LAN to another. IP forwarding is also referred to as 'bridging' networks.


When was DHL Global Forwarding created?

DHL Global Forwarding was created in 1815.


Where the pointers are used?

POINTERS ARE USED TO STORE ADDRESS


What are the background pointers in java?

Java does not support pointers.


What is the code for call forwarding?

Call forwarding is a popular service that allows for calls to be forwarded to your phone. The code to set up call forwarding is usually *72.


How do you start a clearing and forwarding business?

how to find needed company for clearing & forwarding agent


What is web forwarding and what advavantages does webforwarding have?

Web forwarding is when you have a website and you want to forward stuff to another website. The advantages of web forwarding is that it makes things a lot easier to do.


When was Airport Freight Forwarding Centre created?

Airport Freight Forwarding Centre was created in 1998.


What is a sentence with forwarding in it?

I'm forwarding this letter on to the head of my committee. That truck belongs to a forwarding company; they send out chips to stores all over the country. The librarians are forwarding the development of library science by creating a whole new method of preserving old documents.


Pointers are replaced by what in java?

Nothing. Java does not have a concept that is equivalent to Pointers.