In DOS, if you write C/C++ programs using Turbo C/C++, you will need to select a memory model for the application. The memory model basically specifies the number of segments in memory for code, data and stack and has an effect on all pointers used in the program.