Home>Article>Backend Development> In C language, near pointer, far pointer and giant pointer
A near pointer is a pointer used to address up to 16 bits in a given portion of computer memory. It can only access data of approximately 64KB size in a given period of time, which is its main disadvantage.
The far pointer is a 32-bit pointer that can access information outside the computer memory. To use this pointer, a segment register must be allocated to store the data address in the segment, and another segment register must also be stored in the nearest segment.
Huge pointers have the same 32-bit size as far pointers and can also access bits located outside the segment. Far pointers are fixed, so the part of the segment they are in cannot be modified in any way; huge pointers can.
The above is the detailed content of In C language, near pointer, far pointer and giant pointer. For more information, please follow other related articles on the PHP Chinese website!