Akash Gaur
Can we declare a variable const and volatile both?
Posted by Akash Gaur in Languages | C/C++ on Feb 16, 2012
0
Do you know the answer for this question? Post it below.
Guest

Yes, in  C/C++ you can declare a variable to be both const and volatile.


When you do so, it means that the variable can't be modified by the current program but may be modified by an external process.

Posted by Vulpes on Feb 28, 2012
Sponsored by

Become a Sponsor
PREMIUM SPONSORS
Sponsored by
Nevron Gauge for SharePoint
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.