Newbie Member
8Oct2009,17:20   #11
patelpradeep's Avatar
hi,

I have a doubt here regarding const data members. I guess the static const data members can be initialized inside a class only if they are integral or enumeration type.

Please correct me if i am wrong.
Pro contributor
9Oct2009,10:50   #12
Mridula's Avatar
Hi patelpradeep,

Nothing like that. We can initilize all data types of "static const". Thats why as you can see, purposefully I have taken the example of "double" data type in the article.
All the programs what has been put in the article are compiled successully and result also given for the same.

thanks
mridula.
Go4Expert Founder
19Oct2009,21:36   #13
shabbir's Avatar
Nomination Closed and Voting started for Article of the month - Sep 2009. You can vote for this Article
Go4Expert Member
22Oct2009,14:35   #14
djbrown's Avatar
nice thread!
Pro contributor
23Oct2009,13:49   #15
Mridula's Avatar
thanks djbrown.
Newbie Member
5Aug2010,20:22   #16
peterdrew's Avatar
Oh, thanks, the write is useful,....