Explain Can we have constant volatile variable?
Submitted by: AdministratorConst 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
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
Submitted by: Giridhar
Read Online Embedded Systems Job Interview Questions And Answers
Top Embedded Systems Questions
☺ | Explain What is forward reference w.r.t. pointers in c? |
☺ | Explain What is the difference between embedded systems and the system in which RTOS is running? |
☺ | Explain What happens when recursion functions are declared inline? |
☺ | Explain What are the features different in pSOS and vxWorks? |
☺ | Explain What are different qualifiers in C? |
Top PC Hardware Categories
☺ | Motherboard Interview Questions. |
☺ | Basic Computer Interview Questions. |
☺ | Embedded Systems Interview Questions. |
☺ | A + (Plus) Hardware Interview Questions. |
☺ | Computer Architecture Interview Questions. |