What Do You Know About Near, Far And Huge Pointer?
Answer»
A near pointer is a 16 BIT pointer to an object which is contained in the current segment LIKE code segment, data segment, stack segment and extra segment. It holds only offset address.
A far pointer is a 32 bit pointer to an object anywhere in memory. It can only be used when the compiler allocates a segment register, or we can say the compiler must allocate segment register to use far pointers. These pointers hold 16 bit segment and 16 bit offset address.
Huge pointers are also far pointers i.e. 32 bit pointer the difference is that the huge pointer can be increased or decreased uniformly between any segments and can have any VALUE from 0 to 1MB.