You are here:

C/what about data segment

Advertisement


Question
What is that initalized data segment and uninitalized datasegment. where does the const variables stored.

Answer
In your program, you will initialize few variables during declaration itself and some you don't.
So, those which you initialize like this goes into "Initialized Data segment".
Const variables are also stored in the same place as other variables. But, a special tag may be attached to tell that it is const.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.