Re: its giving the different address !!!!!!!!!!
From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 01/24/05
- Previous message: Mike Wahler: "Re: strtok/strtok_r woes"
- In reply to: sushant: "Re: its giving the different address !!!!!!!!!!"
- Next in thread: sushant: "Re: its giving the different address !!!!!!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 24 Jan 2005 20:30:29 GMT
"sushant" <thesushant@rediffmail.com> wrote in message
news:1106563375.870825.45010@f14g2000cwb.googlegroups.com...
> just give only one printf statement in your code like printf("%p",
> (void *)p); and then replace this statement by printf("%p", (void
> *)&x); and check out whether you are getting the same o/p or not
So you compile one form, run it, and see the output;
then modify, recompile and run again, and get different
output? I would not be at all surprised by that, in
fact I'd *expect* different output. You're running
two separate programs, which can (and almost always will)
be loaded at different addresses.
> ....ive checked this code in borland tc++ 2.01, i was geting diff o/p
> as ive already mentioned in the original question .....
Your testing method is extremely flawed.
BTW what exactly are you trying to determine?
-Mike
- Previous message: Mike Wahler: "Re: strtok/strtok_r woes"
- In reply to: sushant: "Re: its giving the different address !!!!!!!!!!"
- Next in thread: sushant: "Re: its giving the different address !!!!!!!!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|