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 ‘!’.

Computer Science & Information Technology

You might also like to view...

To create a new Access database when you first launch the Access application, you should click the ________ button

Fill in the blank(s) with correct word

Computer Science & Information Technology

The SCO helps to maintain the effectiveness of the personnel security operation by evaluating the ____ between the known threat picture and the formal personnel security procedures that have been established to address it.

A. correlation B. accountability C. relationships D. disparity

Computer Science & Information Technology