Skip to main content

Posts

Showing posts with the label Keywords and Identifiers in C

Keywords and Identifiers in C

C Keywords Keywords 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 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.There are 32 keywords . Keywords In C Along with these keywords, C supports other numerous keywords depending upon the compiler. C Identifiers Identifier refers to name given to entities such as variables, functions, structures etc. Identifier must be unique. They are created to give unique name to a 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 ide