In C++, some of the following are legal identifiers. Which? Why?
a) 9xyz
b) Xyz
c) X+yz
d) xy_z
e) xyz!
a) 9xyz no – An identifier cannot start with a digit
b) Xyz yes. An identifier may have upper and lower case letters
c) X+yz no – This has an illegal ‘+’.
d) xy_z yes.
e) xyz! no – This has an illegal ‘!’.
You might also like to view...
A ____ error occurs when an instruction does not follow the grammar rules of the programming language.
A. syntax B. runtime C. logic D. processing
Discuss the use of colors from Illustrator in InDesign.
What will be an ideal response?
When doing a mail merge, the main document contains the information that will change with each letter or label
Indicate whether the statement is true or false
Magnetic and optical media are divided into circular ______ and then further divided into pie-shaped ________.
A. cells, records B. sectors, tracks C. tracks, sectors D. clusters, cells