answersLogoWhite

0

What is universal pointers?

Updated: 9/23/2023
User Avatar

Wiki User

10y ago

Best Answer

A universal pointer is a pointer variable that does not specify the type being pointed at. That is, it can be used to store any memory address regardless of the type of object actually stored at that address. It can be likened to a variable type, but you cannot dereference the memory address without providing some mechanism for determining the actual type stored at that memory address. Generally you would use a universal pointer when you don't actually care what type resides at the address, you are only interested in the address itself. But just as a typed pointer can point to 0 (or NULL), so can a universal pointer, which simply means it points at nothing at all.

User Avatar

Martina Kuhic

Lvl 10
1y ago
This answer is:
User Avatar

Add your answer:

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

What are void pointers?

They are pointers without type


What are the background pointers in java?

Java does not support pointers.


Where the pointers are used?

POINTERS ARE USED TO STORE ADDRESS


Pointers are replaced by what in java?

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


How do you get score 6?

3 two-pointers or 2 three-pointers


Can labs be trained as pointers?

Yes, some labs are trained as pointers, and some as retrievers.


If your dog is a pointers and shedding a lot is this normal?

Pointers shed like normal dogs


Can you use pointers in java?

Java does not support Pointers and hence you cannot use it in Java.


How many three-pointers did LeBron James make?

he made about 130,000 three pointers


Why laser mouse are used?

Because the laser pointers are much easier to use than the ball pointers. The ball pointers are often difficult to move around while the laser pointers can move in any direction without "getting stuck"


What are restricted pointers in C99?

Using this you specify that two pointers can't point on the same address


How pointers are used in java?

They aren't. Java uses the (safer) idea of references instead of pointers.