Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C code question
#1
Code:
    int a = 2052;
    void* pointerToA = (void*)&a; // now we have a pointer to that space of memory
    char low = *(char*)(pointerToA);
    char high = *(char*)((void*)((int)pointerToA+1));

Should work.
btw: void* rlz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)