C Programming Language Keywords
Table of Contents
In this chapter you will learn about keywords. In C programming, keywords are reserved words that are part of the syntax.
C Programming Token
The smallest unit of C programming language is called token. There are three types of tokens in C programming and these tokens are used in all programs:
- Keyword
- Variable
- Constant
Character Set
A character set is a collection of valid alphabets, digits and special characteers used in C programs.
Alphabets
Upper Case: ABC…………………………………..XYZ
Lower Case: abc…………………………………..xyz
Digits
0 1 2 3 4 5 6 7 8 9
Special Characters
Special Characters used in C Programming
, | < | > | . | - |
( | ) | ; | $ | : |
% | [ | ] | # | ? |
' | & | { | } | " |
^ | ! | * | / | | |
- | \ | ~ | + |
White Space Characters
Blank space, new line, horizontal tab, carriage return and form feed.
C Programming Keyworkds
Keywords in programming are predefined are reserved words that carry special meaning. Since they are part or keyword syntax, they cannot be used a identifiers. For example:
int age;
Here int is the keyword that specifies ‘age’ to be an integet type variable.
Since C programming is case-sensitive, all keywords must be written in lowercase letters. Here is the list of all ANSI supported keywords:
C Keywords
auto | double | int | struct |
break | else | long | switch |
case | enum | Register | typedef |
char | external | return | union |
continue | for | signed | void |
do | if | static | while |
default | goto | sizeof | volatine |
const | float | short | unsigned |
A part from these keywords, C programming language supports some more keywords based on the compiler.
All thsese keywords, their syntax and their usage are discussed in the keywords related topics. However, if you want to get a brief idea of these keywords without going ahead, you can visit the list of keywords in C programming page.
Pingback: C Programming Identifier -