Wipro Interview Question

Q: Can a variable be both const and volatile in C?

Interview Answer

Anonymous

Jun 9, 2019

Yes, mostly used in Embedded System. const volatile means that the code cannot change the value of the variable, but something outside of the program can using the hardware(registers).