hi everybody there......i want to access the addresses other than provided to me c compiler......can anybody help

Recommended Answers

All 3 Replies

Not really sure what you mean...Could you give us an example?

Memmory addresses or what?

>i want to access the addresses other than provided to me c compiler
I'll guess that you mean you want to access arbitrary memory addresses. C allows it, but a system with protected memory isn't likely to be happy if you try it:

#include <stdio.h>

int main ( void )
{
  char *p = (char*)0x12345;

  puts ( p );

  return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.