Get premium membership and access questions with answers, video lessons as well as revision papers.

Give the rules used for naming an identifier

      

Identifier are user defined words used to name entities like variables,arrays,function,structures e.t.c

  

Answers


Chei
Rules for naming identifiers
~name should only consist of alphabets{both uppercase and lowercase}digits and underscore(-)sign.

~First characters should be alphabet or underscore.

~name should not be a keyword.

~identifiers should be given in some meaningful names such as value,net-salary e.t.c.

~since c is a case senstive the uppercase and lowercase are considered differently i.e code,CODE,Code e.t.c are different identifiers.
Softwaretech answered the question on March 12, 2019 at 20:57


Next: Give 2 uses of a comment line as used in c language.
Previous: State and outline 2 types of constants in c language.

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions