Video 1 Introduction To C Programming
Video 1 Introduction To C Programming
Character Set
1. Letters:
a. Uppercase letters : A, B, C, …, Z
b. Lowercase letters : a, b, c, …, z
2. Digits: 0, 1, 2, …, 9
3. Special characters: , . : ; ! “ ^ & * ( ) { } [ ] < > |\ / _ ~ etc.
4. White space characters:
Token in C
Identifiers
An identifier refers to the name given to a variable or a function.
The rules to write an identifier name on C are:
o Identifier name in C can have letters, digits or underscores.
o The first character of an identifier name mist be a letter or an
underscore. The first character of an identifier name cannot
be a digit.
o No special character (except underscore), blank space and
comma can be used in an identifier name.
o Keywords or reserved words should not be used as identifier.
Keywords
List of Keywords in C
Int age;
Comments
A single line comment starts with two forward slashes (i.e //) and is
automatically terminated with the end of line.
A multi-line comment starts with /* and terminates with */. A multi-line
comment is used when multiple lines of text are to be commented.
Comment lines are not executable statements and therefore anything
between /* and */ is ignored by the compiler.
Introduction to Programming