Day - 3 Understanding C Memory Layout Memory in a C program is divided into different sections, each with a specific purpose, which helps the program run efficiently and manage data. Let's go through each section and explain its role with simple examples. 1. Text Segment (Code) This section contains the actual machine code, the instructions that tell the computer what to do. Example : printf("Hello, World!"); Here, the compiled machine code for printf("Hello, World!"); will be stored in the text segment . It's read-only, so it can't be modified during runtime. 2. Initialized Data Segment This segment stores global and static variables that are initialized with a value before the program runs. Example : int globalVar = 10 ; static int staticVar = 5 ; Here, globalVar and staticVar are stored in the initialized data segment because they are global/static and have initial values. 3. Uninitialized Data Segment (BSS) This segment stores global an...