I'm trying to understand some code and there is a declaration:
Code:
volatile byte k=0;
What does the word volatile mean? I cannot find it in the CCS C manual.
tks
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Fri May 11, 2007 7:26 am
It is defined in K&R but it is meaningless in CCS C. It means the value could change at any time due to an interrupt or some other thread running, so it should not be cached. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum