The way I understand Constants Only the compi.lier "Knows" about it.  The end 
program doesn't.  In this sence, Constants aren't even data.

--- On Tue, 9/30/08, Arindam Biswas <[EMAIL PROTECTED]> wrote:

From: Arindam Biswas <[EMAIL PROTECTED]>
Subject: [c-prog] const variable: stored in data segment?
To: c-prog@yahoogroups.com
Date: Tuesday, September 30, 2008, 5:03 AM






Hi Friends,

One simple doubt:

const int a = 10; // global
my_function( )
{
const int b = 20; // local
}

Will both 'a' and 'b' be stored in data segment?

If yes:
  I thought Data segment is having both read and write access. Will it conflict 
with the constantness of variable 'a' and 'b'?

Thanks.

Unlimited freedom, unlimited storage. Get it now, on http://help. yahoo.com/ 
l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html/

[Non-text portions of this message have been removed]

 














      

[Non-text portions of this message have been removed]

Reply via email to