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.

State rules of naming variables in C++. How do they differ from ANSI C rules?

State rules of naming variables in C++. How do they differ from ANSI C rules?

Answers


Francis
1. Only alphabetic characters,digits and underscores are used.
2. The name cannot start with a digit
3. Uppercase and lower case letters are distinct.
4. Adeclared keyword cannot be used as a variable name.
-The difference between c and c++ is the limit on the length of a name.Since C recognizes only 32 characters in a name, c++ has no limit on the length of a character.

Francis Nkurumwa answered the question on February 9, 2018 at 14:17

Answer Attachments

Exams With Marking Schemes

Related Questions