In C programming, some reserved words having some special meaning called keywords.The Meaning of each keyword is fixed. We cannot change the meaning of keywords. C contains 32 keywords. Here eitworld.com provides the learning tutorial of keywords in c.
Identifiers are the name given to the various programming elements like variables, array, functions and structures etc. and rules to declare an identifier is that alphabets, digits and underscore, begins with the alphabets or underscores (_) and digits (0-9) and keyword cannot be used as an identifier.Here eitworld.com provides the learning tutorial of Identifiers in c.
- C language contains some reserved words having some special meaning called keywords.
- The Meaning of each keyword is fixed. We cannot change the meaning of keywords.
- We cannot use any of the keywords as the identifier and if we use any keyword as identifier then we will get error.
- In C language all the keywords are written in small case letters.
- There are 32 keywords present in C language which are given below in the table:
- Some additional keywords are also added in Borland C those are as follows:
- Identifiers are the name given to the various programming elements like variables, array, functions and structures etc. In simple words, identifiers are used to give the name for elements or it is used to identify the elements of the program which we use in the program uniquely.
- Identifier can use the alphabets, digits and underscore.
- Identifier begins with the alphabets or underscores (_).
- Identifier cannot begin with the digits (0-9).
- Keyword cannot be used as an identifier.
- For ANSI (American National Standard Institute) C maximum length of identifier is 32 but many compiler support more than 32 character long and it is also depended on the operating system which we use.
- Identifiers cannot contain punctuation special symbols or characters such as @, !, &, ^, # etc.
- Following are some examples of valid and invalid identifiers: