Direct Pointer assignment



Hello,
I have a small piece of code that I want to directly assign a segment of
memory to a pointer. But complier tell me wrong. Pls you help.Codes below:
------------------
int * p;
p=0x241ff5c;
-------------------


.



Relevant Pages

  • Re: NULL with representation other then all bits 0
    ... >> process id, segment id, page id, page offset, and bit or byte. ... trying to allocate stuff in memory becomes sort of a 3-dimensional ... >and wanted to address it in a C program with a pointer, ...
    (comp.lang.c)
  • Re: ptrs validity
    ... I have a pointer that points to an unknown heap memory block, ... to allocate a fresh, hardware checked segment for each allocation. ...
    (comp.lang.c)
  • Re: ptrs validity
    ... I have a pointer that points to an unknown heap memory block, ... hardware checked segment for each allocation. ...
    (comp.lang.c)
  • Re: addresses and integers
    ... Intel x86 memory architecture ...] ... > pointer still uses an implied segment selector (depending on the ... Actually, the code segment typically points to different memory, so ...
    (comp.lang.c)
  • Re: memory oraganisation??
    ... Some implementations break apart programs into different segments. ... A data segment may contain the variables. ... The actual loading of programs "into memory" is a property of the ... You have declared a pointer to constant data. ...
    (comp.lang.c)