Re: its giving the different address !!!!!!!!!!

From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 01/24/05

  • Next message: Phlip: "Re: What makes a good C/C++ programmer?"
    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


  • Next message: Phlip: "Re: What makes a good C/C++ programmer?"

    Relevant Pages

    • Re: speeding up javac
      ... or do you have to run it every time you compile a small ... The clear solution here is to reduce the number of times javac starts ... and only recompile Y if they have. ... echo ISU all built; ...
      (comp.lang.java.programmer)
    • Re: Project manager, compile before saving?
      ... When you recompile the project to either an app or an exe, ... or even compile it into an APP, ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Project manager, compile before saving?
      ... It work Mark, Thanks:) ... Btw, I check the build option "Recompile all file", aren't compile PRG files ...
      (microsoft.public.fox.programmer.exchange)
    • Re: Compiler incompatibility?
      ... to force Eclipse to recompile it. ... I tried deleting the .class file for Bar just to see what would ... tried the compile of Foo, just for laughs, with the Bar.class file no longer ...
      (comp.lang.java.programmer)
    • Re: Project manager, compile before saving?
      ... and source file mean: PRG,FRX,SCX.... ... If is true mean it will compile the PRG,FRX,SCX.... ... The rebuild all will recompile your programs ... > called Programs, Screens in a Forms subfolder, and classes in a Classes ...
      (microsoft.public.fox.programmer.exchange)