[cs631apue] initialized and uninitialized data segment in memory

Mingyao Xiong mxiong3 at stevens.edu
Wed Oct 21 14:09:41 EDT 2020


Is it right that if a global variable is initialized with a value other than zero, then it will be found in initialized data segment?

If a global variable is uninitialized or initialized with zero, it will be in the uninitialized data segment. And exec will initialize it with zero.

Is my comprehension correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20201021/4c5eedfb/attachment.html>


More information about the cs631apue mailing list