Answers

Question and Answer:

  Home  Embedded Software Engineer

⟩ Tell me can a variable be both const and volatile?

The const keyword make sure that the value of the variable declared as const can't be changed. This statement holds true in the scope of the program. The value can still be changed by outside intervention. So, the use of const with volatile keyword makes perfect sense.

 203 views

More Questions for you: