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

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.


Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2013© C# Corner. All contents are copyright of their authors.