This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reserved and keywords

 
sai donthneni
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Differnce between reserved words and keywords?
 
Oscar Gonzalez
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A reserved word is a word that is reserved for special use by the language. Reserved words are system identifiers and cannot be used by the programmer as a user identifier.

Technically a keyword is a reserved word that is currently used by the language with a special purpose.

Therefore all keywords are reserved words, however some reserved words are not keywords yet. The may be so at a later date.

For example, const and goto are reserved words and not keywords yet, they are reserved for later use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic