Professional Documents
Culture Documents
The C Language was developed by Dennis Ritchie at AT & T Bell Laboratories in 1972.
The Name C was given because many features were derived from B Language which
was developed in 1970 by Ken Thompson.
The B language was a stripped down version of Basic Combined Programing Language
(BCPL). The BCPL was developed by Martin Richards in 1967.
The BCPL was the upgraded version ALGOL. The ALGOL was developed by
International Group in 1960.
C Tokens
Keywords
Identifiers
Constants
Keywords-
The keywords are previously reserve in C. The every word which has standard
predefined meanings called keywords. Keywords can be used as predefined purpose. In
cannot be used as the programmer definition.
In C Library 32 Keywords are defined with the particular of these words. These
keywords are shown in table below.
32 keywords of c language
Keywords
auto default short enum
Identifiers-
Identifiers or symbols are the names. Which we give for variables, type, function,
and labels in our program.
C Language is a case sensitive language so Variable and variable are two different
identifiers.
Identifiers
Valid Variable Names Invalid Variable Names
Variable Variable.1
Variable1 variable!2
variable #variable
variable1 1variable
_variable +variable
a_long_variable variable 12
Constants-
Constants provide a way to define the variables which cannot be modified
during the execution of the program. The constants are basically divided in four types.
Integer Constants
Floating Constants
Character Constants
String Constants
Examples of Constants
Type of Constants Examples
Integer Constants 0, 1, 2, 3, 4, 5