Q: Can a variable be both const and volatile in C?
Anonymous
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).
Check out your Company Bowl for anonymous work chats.