google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 Identifiers in C

Identifiers in C

0
Identifiers in C

Identifiers are user defined word used to name of entities like variables, arrays, functions, structures etc. Rules for naming identifiers are:


1) Name should only consists of alphabets (both upper and lower case), digits and underscore (_) sign.


2) First characters should be alphabet or underscore.


3) Name should not be a keyword


4) Since C is a case sensitive, the upper case and lower case considered differently, for example code, Code, CODE etc. are different identifiers.


5) Identifiers are generally given in some meaningful name such as value, net_salary, age, data etc.     An identifier name may be long, some implementation recognizes only first eight characters, most recognize 31 characters. ANSI standard compiler recognize 31 characters. Some invalid identifiers are 5cb, int, res#, avg no etc.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top