Akash Gaur
Can we declare a variable const and volatile both?
By Akash Gaur in C, C++, MFC on Feb 16 2012
  • Neha Kumari
    Nov, 2017 5

    No

    • 0
  • Vulpes
    Feb, 2012 28

    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.

    • 0

Most Popular Job Functions


MOST LIKED QUESTIONS