1. Title
The storage space of global variables in the C program is allocated in ____.
A code area
B static data area
C stack area
D heap area
2. Theory
Code area: store binary code.
Stack area: store function parameter values and local variable values.
Heap area: resources allocated and released by the programmer, that is, some resources defined by the programmer.
Static data area: data that exists during the entire run. In fact, you can see the name static, which refers to global variables and static variables.
3. Analysis
According to the above theory, choose B.