Reserve words or keywords in C language

Keywords in C language are also called reserved words. Every programming language has some keywords. We can not use these keywords as the name of any variables. C also has some keywords. Some very common keywords in C programming languages are given here in the table bellow.

It is not needed to memorize them but you should have a general concept about keywords. We will know the use of each keyword step by step. Now, just try to avoid them from using as the name of any variable.

List of 33 reserve words or keywords in C

Keywords in C
auto
double
int
struct
break
else
long
switch
case
enum
register
typedef
unsigned
short
float
const
goto
default
sizeof
volatile
while
if
static
do
continue
for
signed
void
union
return
extern
char
break

If you use any keywords as the name of a variable then it will give you an error. See the code bellow;

#include <stdio.h>
int main(){
int short = 10;            // error because short is a keyword
printf("%d\n", short);
return 0;
}

Now try to use other keywords as the name of a variable, you will get an error every time which can’t allow the code to compile.

Previous pageData types in C

Next pageOperators in C