Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
"const" and "volatile"
Can a variable be both const and volatile?
✍: FYIcenter
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, a timer structure can be 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.
2007-02-26, 7015👍, 0💬
Popular Posts:
it will be very helpful if you send some important Questions with Answers of DBMS Tell us what types...
Which bit wise operator is suitable for turning off a particular bit in a number? The bitwise AND op...
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...
.NET INTERVIEW QUESTIONS - What is Multi-tasking ? It’s a feature of modern operating systems with w...
How do we host a WCF service in IIS? Note: - The best to know how to host a WCF in IIS is by doing a...