- Keywords in c can be defined as reserved words or pre-defined or pre-defined words having their own importance and each keyword has its own importance and each keyword has its own functionality.
- Since keywords are reserved words used by the compiler so they cannot be used as variable names.
- If the keywords are used as the variable names it means that we are assigning a different meaning to the keyword which is not allowed.
- C language supports 32 keywords.
- All c keywords must be written in lower case.
KEYWORDS IN C
auto | double | int | struct |
break | else | long | switch |
case | enum | register | typedef |
char | extern | return | union |
const | float | short | unsigned |
continue | for | signed | void |
default | goto | sizeof | volatile |
do | if | static | while |
Keyword Types
Keyword Types | Keywords |
Data types |
int char float double |
Qualifiers |
signed unsigned short long |
User-defined |
typedef Enum |
Storage Classes |
auto register static extern |
Loop |
For While Do |
Decision |
if else switch case default |
Jump |
Break continue Goto |
Derived |
struct union |
function |
void return |
Others |
const volatile sizeof |