How to manipulate the huge addresses?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnagJohari
    New Member
    • May 2010
    • 96

    How to manipulate the huge addresses?

    hello,
    i donot know how to manipulate this huge address like 0x59990005
    ,0x59980015 please explain in a clear way how to manipulate these huge addresses
    I write a c program in which these addresses is used just tell how it's working
    i m not able to understand how i slove this program.
    Code:
    #include<stdio.h>
    
    void main(){
    
    int huge *a =(int huge *)0x59990005;
    
    int huge *b =(int huge *)0x59980015;
    
    if(a == b)
    
    printf("power of pointer");
    
    else
    
    printf("power of c");
    
    getch();
    
    }

    thank you
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    What platform are you working on that still uses huge pointers?

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Also, the actual value of a pointer is managed by the operating system. Therefore, putting some arbitrary value in a pointer is usually invalid since you cannot determine the address space of your process while it is executing.

      What you should do is define other variables and pit the addresses of those variables in your pointer.

      Comment

      Working...