Top "Dereference" questions

Anything related to pointer dereference, i.e. the process of determining the object which the pointer is referring to.

What exactly is the purpose of the (asterisk) in pointers?

I'm new to programming and I'm trying to wrap my head around the idea of 'pointers'. int main() { int x = 5; …

c++ pointers memory-address dereference
How to fix the Findbugs issue "Null value is guaranteed to be dereferenced" NP_GUARANTEED_DEREF

Hi I have got some code that is reported as having the NP_GUARANTEED_DEREF issue by Findbugs. Now looking …

java nullpointerexception findbugs dereference correctness
Is it possible to dereference variable id's?

Can you dereference a variable id retrieved from the id function in Python? For example: dereference(id(a)) == a I …

python memory dereference
Dereferencing Objects in an Array for Java Garbage Collection

I have done some research on the java garbage collector and understand that an object who is no longer referenced …

java arrays garbage-collection dereference
Does dereferencing a struct return a new copy of struct?

Why when we reference struct using (*structObj) does Go seem to return a new copy of structObj rather than return …

pointers go struct dereference
How do I dereference a Perl hash reference that's been passed to a subroutine?

I'm still trying to sort out my hash dereferencing. My current problem is I am now passing a hashref to …

perl hash dereference
Does dereferencing a pointer make a copy of it?

Does dereferencing a pointer and passing that to a function which takes its argument by reference create a copy of …

c++ pointers dereference
Why does printing a pointer print the same thing as printing the dereferenced pointer?

From the Rust guide: To dereference (get the value being referred to rather than the reference itself) y, we use …

pointers rust dereference
Which of these will create a null pointer?

The standard says that dereferencing the null pointer leads to undefined behaviour. But what is "the null pointer"? In the …

c++ dereference null-pointer
Pointer to an Element of a Vector

If I have a pointer that is pointing to an element in a vector, say element 2, and then that element …

c++ pointers dereference