CODE AND DATA SEGMENTS

All the Windows programs shown so far have one code segment and one data segment. Windows programs can also have multiple code and data segments. For larger programs, using multiple code segments is highly recommended because it helps relieve memory congestion in Windows. Using multiple data segments, on the other hand, is a real problem. Let's take a look at this interesting subject.