hello daniweb..
can any one please explain me the following code:-

#include<stdio.h>
int main(){
char far *p =(char far *)0x55550005;
char far *q =(char far *)0x53332225;
*p = 80;
(*p)++;
printf("%d",*q);
return 0;
}

as per my knowledge far * is not used now..
but far pointer is used to access all the 16 segments of memory
size of far * is 4 byte i.e., 32.
i know only this thing and so unable to understand the code..

narue...can you please explain the code.

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.