Keywords in C Programming Language
What are Keywords ?
In C programming language some words are predefined and keywords have specific meaning to compiler in c program . These words can not used as name of variables and functions, there are 32 keywords in c language and compiler will show error if any keyword is used in program as variable name because Keywords have a special meaning to compiler.
Keywords in c
32 Keywords in c
List of keywords in C Language
auto do goto signed unsigned break double if sizeof
void case else int static volatile char enum long struct
while const extern register switch continue float return typedef
default for short union
all above 32 words are reserved or predefined as keywords in c and having certain meaning so during program execution keywords work with predefined supposed for keyword is used in c program and for will work as loop.
Use of Keywords in C
Keywords example in c
#include<stdio.h>
void main(){
int i;
for(i = 0; i < 10; i++) // for is a keyword
{
printf(“%d\n”, i);
}
}
Keyword in c language
Some Keywords added in the C99 Standard
_Bool _Complex _Imaginary inline restrict
C11 Standard Keywords
_Alignas _Alignof _Atomic _Noreturn _Static_assert _Thread_local
Note
All these word can not be used as keywords or identifiers
1 thought on “Keywords in c programming Language”