Quote:
Originally posted by dv007
Since base on C books,both above pointer variables
hold non-legal addresses. But actually it outputs
perfect address for both. Each pointer hold a
different perfect 32-bit address on my PC. So why C called them "illegal" addresspointers?:confused:
DV007
because they're someone else's address space. your program doesnt have the rights to use that space. just imagine what things would be like if anything was allowed to write anywhere in ram and there were no controls on who's ram is whos. you wouldnt be able to run a program safely because other programs would always be overwriting it's data.