C Keywords and IdentifiersIn this tutorial, you will learn about keywords; reserved words in C programming that are part of the syntax. Also, you will learn about identifiers and how to name them.Character setA character set is a set of alphabets, letters and some special characters that are valid in C language.AlphabetsUppercase: A B C …………………………….. X Y Z Lowercase: a b c ……………………………….. x y zC accepts both lowercase and uppercase alphabets as variables and functions.Digits0 1 2 3 4 5 6 7 8 9Special CharactersSpecial Characters in C Programming,._();$:%[]#?’&{}”^!*/|-\~+ White space CharactersBlank space, newline, horizontal tab, carriage return and form feed.C KeywordsKeywords 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 money;Here, int is a keyword that indicates money is a variable of type int (integer).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.C KeywordsautodoubleintstructbreakelselongswitchcaseenumregistertypedefcharexternreturnunioncontinueforsignedvoiddoifstaticwhiledefaultgotosizeofvolatileconstfloatshortunsignedAll 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, visit List of all keywords in C programming.C IdentifiersIdentifier refers to name given to entities such as variables, functions, structures etc.Identifiers must be unique. They are created to give a unique name to an entity to identify it during the execution of the program. For example:int money; double accountBalance;Here, money and accountBalance are identifiers.Also remember, identifier names must be different from keywords. You cannot use int as an identifier because int is a keyword.Rules for naming identifiersA valid identifier can have letters (both uppercase and lowercase letters), digits and underscores.The first letter of an identifier should be either a letter or an underscore.You cannot use keywords like int, while etc. as identifiers.There is no rule on how long an identifier can be. However, you may run into problems in some compilers if the identifier is longer than 31 characters.You can choose any name as an identifier if you follow the above rule, however, give meaningful names to identifiers that make sense.