Computer Science - Object Oriented Programming Using C++ - Discussion


Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:

[A]. list, list2
[B]. address, Address
[C]. identifier_l, identifier_2
[D]. answer, ANSWER
[E]. None of the above

Answer: Option C


No answer description available for this question.

Abhinav said: (Jan 10, 2018)  
Explain how?

Ayesha Tabasum... said: (Jun 20, 2020)  

[A]. list, list2
//within 8 character two different well defined identifier names.

[B]. address, Address
//within 8 character two different well-defined identifier names.

[C]. identifier_l, identifier_2
// not well defined 2 identifiers have same name compilation error occurred within first 8 character range.

[D]. answer, ANSWER
// within 8 characters two different well-defined identifier names.

So Answer is C.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.