Login
Remember
Register
Ask a Question
What is near, far, and huge pointers in C?
0
votes
asked
Jan 12, 2024
in
C Plus Plus
by
GeorgeBell
What is near, far, and huge pointers in C?
c-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 12, 2024
by
GeorgeBell
Near Pointers:
Near pointers are used to store 16-bit addresses only. Using the near pointer, we can not store the address with a size greater than 16 bits.
Far Pointers:
A far pointer is a pointer of 32 bits size. However, information outside the computer’s memory from the current segment can also be accessed.
Huge Pointers:
Huge pointer is typically considered a pointer of 32 bits size. But bits located outside or stored outside the segments can also be accessed.
...