Every programming language has its own set of characters. The characters used in C are divided into 3 categories
- Digits
- Alphabets
- Special characters.
TABLE SHOWS DIFFERENT ALPHABETS , DIGITS , SPECIAL SYMBOLS USED IN C LANGUAGE:
C TOKENS:
|
|
|
|
|
|
|
|
C TOKENS:
The individual units C program are known as C tokens. We use 6 types of tokens in any C program
- Identifier
- Strings
- Constants
- Keywords
- Special symbols
- Operators
KEYWORDS AND IDENTIFIERS:
In C program every word is either a identifier or a keyword. There are 32 keywords used in C Language supported by ANSI. Keywords are the reserve words which have one or more fixed meanings and the meaning of all keywords in any circumstances cannot be changed that is why these are reserve words. All the keywords of C Language are written in Lowercase letter because In C Language uppercase and lowercase letters are significant that is different meanings. List of keywords are:
TABLE SHOWS DIFFERENT KEYWORDS USED IN C LANGUAGE:
In C program every word is either a identifier or a keyword. There are 32 keywords used in C Language supported by ANSI. Keywords are the reserve words which have one or more fixed meanings and the meaning of all keywords in any circumstances cannot be changed that is why these are reserve words. All the keywords of C Language are written in Lowercase letter because In C Language uppercase and lowercase letters are significant that is different meanings. List of keywords are:
TABLE SHOWS DIFFERENT KEYWORDS USED IN C LANGUAGE:
|
|
|
|
IDENTIFIERS:
Identifiers may be defined as variable name, array name , function name, class name etc.Basically identifiers are the sequence of alphabets and digits.
RULE FOR FORMING IDENTIFIER NAME:
- Keywords should not allow to be used as identifier.
- Uppercase and lowercase identifiers are different.
- The first character must be an alphabet or an underscore.
- Two successive underscores are not allowed.
- No special characters except underscore "_" are allowed.
- All succeeding characters must be either letters or digits.
EXAMPLES:
- int a2 VALID
- int _a23 VALID
- int a_257 VALID
- float abc VALID
- int a__2 INVALID
- int 2_b INVALID
- int char INVALID
- int name VALID
- float while INVALID
- float !a INVALID
in identifier examples you have given examples in that float abc is given vaild but according to above it is invalid
ReplyDeletehello friends visit http://cncreate.blogspot.in/ for better understanding
ReplyDeleteI very happy to read this informative post.Its a very useful for everyone.
ReplyDeletec language training
This comment has been removed by the author.
ReplyDeleteThanks for sharing this tutorial. C identifiers are case sensitive, which means 'value' and 'Value' will be treated as two different identifiers.
ReplyDeleteVery Useful information that i have found. don't stop sharing and Please keep updating us..... Thanks
ReplyDelete
ReplyDeletevery good information provided you can read the best c Language Interview Questions
It's very useful for me
ReplyDeleteIt's very useful for me
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteIt's very useful for me
ReplyDeleteThank your valuable content.we are very thankful to you.one of the recommended blog.which is very useful to new learners and professionals.content is very useful for hadoop learners
ReplyDeleteBest ASP.NET MVC Online Training Institute
Best Spring Online Training Institute
Best Devops Online Training Institute
Best Datascience Online Training Institute
Best Oracle Online Training Institute
Best AWS Online Training Institute
Best AngularJS Online Training Institute
Best C-language Online Training Institute