Ads

There are 32 keywords in C

 KEYWORDS :

- Keywords in c programming language are nothing but the fixed names which are identified by C compiler.

- C language has 32 keywords and they are mentioned below. We will learn these keywords at the time of their usage.

- We have very less keywords in C programming language but yet it is very powerful. The reason behind it is the pre-defined functions, which are mentioned in C library.

- When you write your c programming code in an editor which has an ability to identify the c keywords, then editor will represent these keywords in different color than the normal text.

- Below is an example of how the keywords in C language are represented in different color in VIM editor.


#include<stdio.h>
int main()
{
  int i;
  float b;
  return 0;
}


The 32 keywords which are identified by C compiler are:

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



No comments:

Post a Comment