C keyword and identifier
- Character: it denoted any alphabet,digit or special symbol used to represent information.
- Use: These characters can be combined to form variable,C use Constants.variable,operators,keyword,and expression as building blocks to form a basic C programming language.
- Character set:The character set is the fundamental raw material of any language and they are used to represent information,Like natural language,compile. Language will also have well defined character set,which is useful to build the programs
As every language contains a set of characters used to construct words, statements, etc., C language also has a set of characters which include alphabets, digits, and special symbols. C language supports a total of 256 characters.
Every C program contains statements. These statements are constructed using words and these words are constructed using characters from C character set. C language character set contains the following set of characters...
- Alphabets
- Digits
- Special Symbols
- Alphabets
- Uppercase = ABC.............................XYZ
- Lowercase =abc.................................Abc
- Identifier are name for entities in C programme,such as variable, arrays,function ,structure unions and labels.an identifier can be composed only of uppercase ,lowercase letters,underscore and digit but should start only with an alphabet or an underscore
- Identifier must be unique they are created to give a unique name to an entity to identify it during the execution of the programme
- An Identifier can only have alphanumeric characters(a-z , A-Z , 0-9) and underscore( _ ).
- The first character of an identifier can only contain alphabet(a-z , A-Z) or underscore ( _ ).
Identifiers are also case sensitive in C. For example name and Name are two different identifiers in C.
Comments
Post a Comment