What is Far pointer in c?

1 Like

The pointer which can point or access whole the residence memory of RAM i.e. which can access all 16 segments is known as far pointer.

Size of far pointer is 4 byte or 32 bit.


void main()

 int far *near *ptr;

 printf("%d %d",sizeof(ptr) ,sizeof(*ptr));


Output: 4 2

Reason: ptr is far pointer while *ptr is near pointer.