I would like to know the difference between volatile and const.Pls. explain it with an example.
"CONST is used to declare the constants i.e the value of this data type will not be changed through out the program execution." Not exactly. const can be used in function parameter declarations - this doesn't mean that the parameter value will not change throughout the program execution! eg, http://www.keil.com/support/man/docs/c51/c51_strrpos.htm