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 <agarwalha...@gmail.com>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 algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > 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 algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.