Uploaded April 2025 | Updated December 2026, 22 hours ago
In this beginners C Programming Language tutorial, we will dive deep into the concept of identifiers. Identifiers are essential in any program, as they are used to name variables, functions, arrays, and other user-defined elements.
What You Will Learn:
What is an Identifier?
An identifier is the name used to identify user-defined elements in a program, such as variables and functions. We'll use an example of a variable called age to demonstrate how identifiers are used.
Rules for Creating Identifiers:
We will go over the important rules that must be followed when creating identifiers in C, including:
The identifier must start with an alphabet or an underscore.
Subsequent characters can be alphabets, digits, or underscores.
Identifiers are case-sensitive (e.g., age is different from Age).
The identifier's length can vary, but it shouldn't be unnecessarily long.
What You Cannot Do:
You cannot use reserved keywords (like for, if, int, etc.) as identifiers.
Identifiers must be unique within the scope of a program. You cannot reuse the same identifier for multiple entities.
Identifiers cannot contain spaces or special symbols (such as @ or #). Only underscores (_) are allowed.
Best Practices for Identifiers:
Always provide meaningful and descriptive names for your identifiers to make your code more readable and maintainable. For example, instead of using a name like x to store the age of a person, use a more descriptive name like age or person_age.
Follow a consistent naming convention throughout your program (e.g., camel case, snake case) to improve readability.
Our Website
LearningLad.com
Social Media
Facebook facebook.com/LearningLad
Twitter twitter.com/LearningLadEdu
Instagram instagram.com/LearningLadOfficial
In this beginners C Programming Language tutorial, we will dive deep into the concept of identifiers. Identifiers are essential in any program, as they are used to name variables, functions, arrays, and other user-defined elements.
What You Will Learn:
What is an Identifier?
An identifier is the name used to identify user-defined elements in a program, such as variables and functions. We'll use an example of a variable called age to demonstrate how identifiers are used.
Rules for Creating Identifiers:
We will go over the important rules that must be followed when creating identifiers in C, including:
The identifier must start with an alphabet or an underscore.
Subsequent characters can be alphabets, digits, or underscores.
Identifiers are case-sensitive (e.g., age is different from Age).
The identifier's length can vary, but it shouldn't be unnecessarily long.
What You Cannot Do:
You cannot use reserved keywords (like for, if, int, etc.) as identifiers.
Identifiers must be unique within the scope of a program. You cannot reuse the same identifier for multiple entities.
Identifiers cannot contain spaces or special symbols (such as @ or #). Only underscores (_) are allowed.
Best Practices for Identifiers:
Always provide meaningful and descriptive names for your identifiers to make your code more readable and maintainable. For example, instead of using a name like x to store the age of a person, use a more descriptive name like age or person_age.
Follow a consistent naming convention throughout your program (e.g., camel case, snake case) to improve readability.
Our Website
LearningLad.com
Social Media
Facebook facebook.com/LearningLad
Twitter twitter.com/LearningLadEdu
Instagram instagram.com/LearningLadOfficial










