π In C programming, identifiers are the names assigned to different entities such as variables, functions, arrays, etc.
πA programmer has to follow certain rules while naming variables, functions, arrays, etc
πC language is case-sensitive so, ‘name’ and ‘NAME’ are different identifiers.
πThe first character of an identifier must NOT be a number and may not contain a space.
πAn identifier can include letters (a-z or A-Z), and digits (0-9).
πAn identifier can only begin with an underscore or letters.
πWe cannot name identifiers the same as keywords because they are reserved words to perform a specific task.
πIf we use a keyword's name as an identifier the compiler will throw an error.
For example:
πprintf, scanf, int, char, struct, etc InValid Identifiers
πemp_name,emp_sal ,stu_name,stu_no Valid Identifiers
No comments:
Post a Comment
Thank you Very Much.For Given Comment