Friday 19 June 2009

What is const and volatile qualifier in C programming?



Value of any
variable can be changed either by program or external device. Keywords const and volatile are not opposite to each
other.


Const:





When any
variable has qualified with const keyword in declaration
statement then it is not possible to assign any value or
modify it by the program. But indirectly with the help of pointer its value can
be changed.
When any variable is not

No comments:

Post a Comment