Identifiers In C Programming

๐Ÿ‘‰ 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

Downloading Talliki Vandhanam List

--> Citizens can know the status of Talliki Vandhanam Click Here -->Knowing the Status of Talliki Vandhanam   --> In GSWS NBM Login...