Pointer Types and Function Pointers

The following table shows how data pointer size varies with memory model and __far, __near, or __paged keyword usage.

Table 1. Data Pointer Sizes
Memory Model Compiler Option Default Pointer Size __near Pointer Size __far Pointer Size __paged Pointer Size
SMALL -Ms 1 1 2 2
BANKED -Mb 2 1 2 2

Function pointer size is 2 bytes, regardless of the memory model selected.