Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

Can a variable be both const and volatile?

Yes. The  const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside this code. For instance, the timer structure was accessed through a volatile const pointer. The function itself did not change the value of the timer, so it was declared const. However, the value was changed by hardware on the computer, so it
was declared volatile. If a variable is both const and volatile, the two modifiers can appear in either order.

Do you know that?

Clients search Elance for online hires over 6.1M times each year. That's 696 times per hour Next

Articles:

Getting payments for Freelancers
1. Read how to register and get earned money

2. Open account within 5 minPayoneer sing up to get free $25