ET Phone Home
Apprentice
- Joined
- Sep 8, 2008
- Sythe Gold
- 0
- Messages
- 663
Hi.
I don't quite understand referencing things, dereferencing things, and pointers
if you say
int one = &two;
int one will then have the value of the location/memory address of int two?
and if you say
int * one = two
int two will then have the value of whatever content is in the memory address of "int one?"
How is any of that useful? I'm extremely new to c++ and I'm not really grasping how this memory address/memory location value is useful?
And can anyone define what a pointer is and does, in layman's terms?
I don't quite understand referencing things, dereferencing things, and pointers
if you say
int one = &two;
int one will then have the value of the location/memory address of int two?
and if you say
int * one = two
int two will then have the value of whatever content is in the memory address of "int one?"
How is any of that useful? I'm extremely new to c++ and I'm not really grasping how this memory address/memory location value is useful?
And can anyone define what a pointer is and does, in layman's terms?

