volatile also means that you don't perform compiler optimizations on the variable... Anil
On Sat, Jun 26, 2010 at 5:47 PM, harit agarwal <[email protected]>wrote: > @sharad > you made it const so it can't be changed inside same program.. > but as it is volatile it will read it as a first time whenever you try to > use it....because it can be changed by external source.... > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
