Showing posts with label Keywords. Show all posts
Showing posts with label Keywords. Show all posts

Wednesday, 20 February 2019

Keywords in C

Keywords
  • Keywords are reserved words whose meaning is predefined by the programming language specification(compiler). 
  • They convey some special meaning in programming and we must not use them for other purposes. 
  • Keywords are part of the syntax and they cannot be used as an identifier.
  • An identifier cannot have the same spelling and case as a C keyword.
For example – float is a C keyword that defines real numbers. You can’t use float for other purposes.
As C is a case sensitive language, all keywords must be written in lowercase.
  1. Keywords are those words whose meaning is already defined by Compiler
  2. Cannot be used as Variable Name
  3. There are 32 Keywords in C
  4. C Keywords are also called as Reserved words .

Following table shows the lost of keywords(list taken from https://en.cppreference.com/w/c/keyword):
Please comment if you find anything incorrect, or you want to improve the topic discussed above.