136k views
4 votes
When a C program is loaded to run, this (memory map) area , data in _____ is initialized by the kernel to arithmetic 0 or null pointers before the program starts executing. The C declaration (for example, "long sum[1000];") appearing outside any function causes this variable to be stored in _____.

User Shaby
by
4.7k points

1 Answer

7 votes

Answer:

1. Segment

2. Uninitialized data segment

Step-by-step explanation:

When a C program is loaded to run, this (memory map) area, data in this segment is initialized by the kernel to arithmetic 0 or null pointers before the program starts executing. The C declaration (for example, "long sum[1000];") appearing outside any function causes this variable to be stored in uninitialized data segment.

Uninitialized data segment also known as bss segment, which stands for block started by symbol and was named after an ancient assembler operator.

User AChep
by
5.1k points