InterviewSolution
Saved Bookmarks
| 1. |
Is it possible for a variable to be both volatile and const? |
|
Answer» The const keyword is used when we want to ensure that the VARIABLE value should not be changed. However, the value can STILL be changed due to external INTERRUPTS or events. So, we can use const with volatile keywords and it won’t CAUSE any PROBLEM. |
|