C Programming Identifier

C Programming Identifier

C Programming Identifier

C Programming Identifier

Table of Contents

In this chapter you will learn about identifiers and proper naming of variables.

C Identifier

An identifier is a name used to identify an entity such as a variable, function, structure, etc.

In C programming, identifiers must be unique. They are mainly created to identify an entity through a unique name during program execution. For example:

				
					int money;
double accountBalance;
				
			

Here money and accountBalance are identifiers.

Remember, C keywords can never be used to name identifiers.

For example, you can’t use double as an identifier if you want because it’s a keywords.

c programming switch case statement

Conventions for Naming Identifiers

Programming in a better way

You can choose any name for the identifier without keywords. However, if you give the identifier a meaningful name it will be easier for you and your future programmers to understand.

1 thought on “C Programming Identifier”

  1. Pingback: C Programming Variable -

Leave a Comment

Your email address will not be published. Required fields are marked *