Keywords are predefined, reserved words used in programming that have special meanings to the compiler. Keywords are part of the syntax and they cannot be used as an identifier. For example:
int mobile
Here, int
is a keyword that indicates mobile is a variable of type int
(integer).
There are total 32 keywords in C.
auto | double | int | struct |
break | else | long | switch |
case | enum | register | typedef |
char | extern | return | union |
continue | for | signed | void |
do | if | static | while |
default | goto | sizeof | volatile |
const | float | short | unsigned |
As C is a case sensitive language, all keywords must be written in lowercase. Here is a list of all keywords allowed in ANSI C.
All these keywords, their syntax, and application will be discussed in their respective topics. However, if you want a brief overview of these keywords without going further.
HYPER ERA PVT.LTD | TERMS & CONDITIONS