1. Text Segment (Code Segment):

2. Data Segment:

3. Heap Segment:

4. Stack Segment:

5. Command-line Arguments and Environment Variables: