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

Discussion Forum : Object Oriented Programming Using C++ - Section 7 (Q.No. 17)
17.
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:
list, list2
address, Address
identifier_l, identifier_2
answer, ANSWER
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Ayesha Tabasum... said:   4 years ago
@All.

[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.

Abhinav said:   6 years ago
Explain how?

Post your comments here:

Your comments will be displayed after verification.