C Language

Identifier and Keyword in C Language

In C Language by Baqir AliLeave a Comment

What is an identifier?

An identifier is a name used for a variable, function, data definition, etc. Here are some examples of legal identifiers:

  • i
  • count
  • max_length

In order to recall a memory space or value of memory during programming, we should assign some kind of address or name to that value therefore we use identifiers.

What is a Keyword

A keyword is a reserved word that cannot be used as an identifier as the keywords are the building blocks of the language itself.

Reserved keywords

There are some reserved keywords that can not be used as an identifier in C Language.

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

Get The Coding Examples From C Language Code Example Page

Variables and Constants Live Code

Support us by sharing this post

About the Author

Baqir Ali

Facebook Twitter

Hi, I am Baqir Ali ---- Blogger, Programmer, and a Teacher. I am currently working as a Programmer for Softnat Technologies. I have tons of ideas and data to share with you all via blogging.

Leave a Comment