Tell me can you have constant volatile variables?



Tell me can you have constant volatile variables?..

Answer / Ranjeet Kumar Ranjan

In C programming, a variable declared as 'volatile' tells the compiler that the value of this variable may be modified by factors outside the current scope or control flow. A 'const' variable is one whose value cannot be changed once it has been initialized. However, a constant volatile variable does not exist in C; if a variable needs to be both const and volatile, you would use 'const volatile'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

How are macros different from functions?

1 Answers  


Tell me why cannot arrays be passed by values to functions?

1 Answers  


What is risc architecture?

1 Answers  


What is loop unrolling?

1 Answers  


How do malloc and calloc work?

1 Answers  


Tell me what is null pointer and what is its use?

1 Answers  


Write a constant time consuming statement lot finding out if a given number is a power of 2?

1 Answers  


PROVIDE ME NOTES ON EMBEDDED TCHNLOGY

1 Answers   TCS,


What is the function of dma controlled in embedded system?

1 Answers  


Write a program to show the functionality of power-save super loop.

1 Answers  


How can you optimize the i/o performance?

1 Answers  


What are the characteristics of embedded system?

1 Answers  


Categories