Home  >  Article  >  Backend Development  >  In C language, near pointer, far pointer and giant pointer

In C language, near pointer, far pointer and giant pointer

王林
王林forward
2023-08-30 14:41:06643browse

In C language, near pointer, far pointer and giant pointer

Near 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.

Far pointer

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

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete