Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

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

Answer Attachments

Exams With Marking Schemes

Related Questions