Explain Can we have constant volatile variable?

Submitted by: Administrator
Const and volatile keywords should not be used together because both are opposite in nature.
A variable is declared as "const" means it's value is not able to be changed but if it is declared as "Volatile" then it is not under control.
Submitted by: Administrator

Yes, we can have both together and is generally used in scenarios where pointers to memory-mapped hardware registers is used or to access variables in shared memory areas
Submitted by: Giridhar

Read Online Embedded Systems Job Interview Questions And Answers