I would like to know the difference between volatile and const.Pls. explain it with an example.
"Modifying a variable definition with const means that the compiler will flag as an error any attempt to directly modify it later in the code." I don't think it has to give an error - it could be just a warning?
Andy, In general that might be true. The defaults on Keil, however, give an "unmodifiable lvalue" error C183.