Thread
:
A variable pointer
View Single Post
#
5
(
permalink
)
09-11-2008, 05:44 AM
Eranga
Moderator
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,061
Quote:
Originally Posted by
tapies
Yes, I see. I just wanted to use that to check e.g. whether two different variables pointed to the same or different memory spot.
Thank you Eranga.
T.
You mean pointed to the same memory address? Say you have two int variables as follows,
Code:
int i = 10; int j = 10;
So you want to know that bot i and j use the same memory address, right?
The answer is no. Whenever the new variable is declared it allocated a memory space as well as address.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.
Help:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Resources:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Web:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Tips:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Eranga
View Public Profile
Send a private message to Eranga
Find all posts by Eranga