C is a general purpose structural language.It is discovered by Dennis Ritchie in year of 1972 at AT 7 T's Bell Laboratories of USA.It is high level language.Instructions of this language is in simple English language such as if else , do while , break , continue , for , int etc. C language is developed by combining two old language such as BCPL(Basic Computer Programming Language), B.
C Tokens
- The C character Set
- Small letters (a....z)
- Capital latter (A,B.....Z)
- Digit (0....9)
- Special Characters (+,-,*,/,%,!,#,&,<,> etc)
- White space like new line,blank space etc.
- Identifiers
- Keyword
Following character is used in C language:
Identifiers are name which is used to identify the different part of program such as Array,Variables and Functions etc.It may be user define or pre-define.Alphabets (a...z),Digits (0...9) and one special symbol (_) are used in identifiers.
Keywords are reserve words.Keywords are those words which is pre-defined by compiler.These keywords are not used as identifiers. There are 32 keywords in C language such as:
do | goto | signed | while |
auto | double | if | static |
char | extern | near | typedef |
break | else | int | struct |
case | enum | long | switch |
const | float | register | union |
continue | far | return | unsigned |
default | for | short | void |
No comments:
Post a Comment