in reply to C-like Pointers
Hi,
The integer represented by the hex notation 0x78000000 is the same integer as 2,013,265,920, which is in decimal notation. I think your program does the equivalent of:
my $x = \1; print $x, "\n";
which outputs something like this:
SCALAR(0x1810e50)
I believe that hex address is where the integer 1 is located in memory. In other words, you didn't succeed in getting a pointer to the address 0x1.
|
|---|